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"
  # => <a href="/articles" class="article" id="news">Articles</a>

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: <br />
106: <!-- Provide links to list other sub categories of entities -->
107: <%= link_to 'List All Clients', clients_path %>
108: <%= link_to 'List All Vendors', vendors_path, :id="vendors_index"
%>
109: <br />
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to