Forum: Ruby on Rails html "class" attribute for "link_to_remote"

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ingo W. (Guest)
on 2006-05-24 00:06

now this should be easy, but for some reason I was not able to generate
a link with a "class" attribute using "link_to_remote".

I tried several different ways, including the one that worked for
"link_to", but so far no luck.

I have to admit that I am not 100% sure how to read the rDoc
documentation. If it says:

link_to_remote(name, options = {}, html_options = {}),

doesn't that mean that the following should work?

link_to_remote('update', {:update => 'mydiv', :url => {:action =>
'myaction'}}, {:class => 'myclass'})

Thanks for any help!
Ingo W.
This topic is locked and can not be replied to.