ActionView URL helper problem


#1

Rails 2.2.2

In the API it says this:

Classes and ids for CSS are easy to produce:

link_to “Articles”, articles_path, :id => “news”, :class => “article”

=> Articles

In my code I do this:

<%= link_to ‘List All Vendors’, vendors_path, :id=“vendors_index” %>

And Rails does this:

Showing app/views/entities/index.html.erb where line #108 raised:

compile error
/home/byrnejb/Software/Development/Projects/proforma.git/app/views/entities/index.html.erb:108:
syntax error
@output_buffer.concat(( link_to ‘List All Vendors’, vendors_path,
:id=“vendors_index” ).to_s); @output_buffer.concat “\n”
^

Extracted source (around line #108):

105:

106:
107: <%= link_to ‘List All Clients’, clients_path %>
108: <%= link_to ‘List All Vendors’, vendors_path, :id=“vendors_index”
%>
109:


#2

James B. wrote:

Classes and ids for CSS are easy to produce:

link_to “Articles”, articles_path, :id => “news”, :class => “article”

=> Articles

In my code I do this:

<%= link_to ‘List All Vendors’, vendors_path, :id=“vendors_index” %>

and right after I posted this I saw my error = instead of =>.