# ActionView URL helper problem

**URL:** <https://www.ruby-forum.com/t/actionview-url-helper-problem/160106>\
**Category:** Rails\
**Created:** [February 11, 2009, 9:18pm UTC](https://www.ruby-forum.com/t/actionview-url-helper-problem/160106 "2009-02-11T21:18:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [February 11, 2009, 9:18pm UTC](https://www.ruby-forum.com/t/actionview-url-helper-problem/160106/1 "2009-02-11T21:18:14Z")

</div>

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](https://www.ruby-forum.com/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:

---

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [February 11, 2009, 9:19pm UTC](https://www.ruby-forum.com/t/actionview-url-helper-problem/160106/2 "2009-02-11T21:19:31Z")

</div>

James B. wrote:

> Classes and ids for CSS are easy to produce:
> 
> link\_to “Articles”, articles\_path, :id =\> “news”, :class =\> “article”
> 
> # =\> [Articles](https://www.ruby-forum.com/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 =\>.
