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

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

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.