SyntaxError in Posts#index ?

For some reason getting this… Any ideas?

Ok, looked at the rails guides. Aparently the syntax is different from the tutorial I’m following… they use

<%= link_to ``'Remove'``, book, ``:confirm => ``'Are you sure?'``, ``:method => ``:delete %>

How can I be sure to use the correct syntax in the future and know what changes have happened? I tried finding the notation at http://api.rubyonrails.org/ … but failed. Possibly because I don’t know how to use it.

Ok, looked at the rails guides. Aparently the syntax is different from the
tutorial I'm following.. they use

<%= link_to 'Remove', book, :confirm => 'Are you sure?', :method => :delete
%>

How can I be sure to use the correct syntax in the future and know what
changes have happened? I tried finding the notation at
http://api.rubyonrails.org/ .. but failed. Possibly because I don't know
how to use it.

The trick is to make sure that you are using the version of rails that
the tutorial expects. Make sure the tutorial is for rails 3.n you
will be wasting time if it is a rails 2 tutorial you are following.
railstutorial.org is good and is free to use online.

Colin