SyntaxError in Posts#index

Don’t remember the exact syntax, but it should say :class => “btn” as far as I remember.

from the official guide: http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-link_to

Classes and ids for CSS are easy to produce:

link_to "Articles", articles_path, :id => "news", :class => "article"

# => <a href="/articles" class="article" id="news">Articles</a>