Sookyeom Kim
Sookyeom Kim

Reputation: 45

how to use 'meta_tags gem' in rails 4

The way I use:

<head>
    <title>PolymerProject</title>  
    <%= csrf_meta_tags %>

    <%= set_meta_tags :description => "All text about keywords, other keywords"%>

    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
    <%= javascript_include_tag 'custom.js', 'data-turbolinks-track' => true %>
    <%= html_import_tag "application", "data-turbolinks-track" => true %>
</head>

the error looks like this:

undefined method `set_meta_tags' for #<#<Class:0x007f3ab45046c8>:0x007f3ab5144aa0><br>

I have installed bundle...what's problem?

Upvotes: 1

Views: 337

Answers (1)

Tom
Tom

Reputation: 520

Restart your rails server.

Hope this helps.

Upvotes: 4

Related Questions