is there a way to generate following html without href by link_to ?
<a name="foobar>header</a>
for example:
<%= link_to 'header' , nil, :name =>'foobar' %>
will generate:
<a href='' name='foobar'>header</a>
but I want a no href='' version.
This doesn’t use link_to, but it will accomplish what you’re looking to do: