Topic: how to handle '<a name= ' links?

hey all
i have a <a name="item">item</a> and im trying to do a link that way:

link_to 'item',:action=>'show',:id=>@item+'#item'

but i get %23item instead of the #.

any idea whats wrong?

thanx in advance

Pat

Re: how to handle '<a name= ' links?

Try this:

link_to 'item', :action=>'show', :id=>@item, :anchor => 'item'

Railscasts - Free Ruby on Rails Screencasts

Re: how to handle '<a name= ' links?

ok, thanx again smile