Is there a way to get link_to to generate a body-less anchor?
I have a CSS sprite which represents an "add" / "remove" button which I
use, so I don't want any body text. For example, I want something
similar to this:
<a title='Add Attachment' class='add_child' onclick='add_asset_row'></a>
Using this does not work:
<%= link_to '#', :url => {:action => 'add_asset_row'}, :title => 'Add
attachment', :class => 'add_child', :remote => true %>
Any suggestions?
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment