> Is there a way to get link_to to generate a body-less anchor? Not sure I understand as what you ask for below isn't an anchor... ??
But maybe what you want is... link_to_function '', 'add_asset_row()', :class => 'add_child' Or if you really want a remote link just replace that '#' with '' and it should give you an empty link... > 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+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.