:class in link_to_remote?

Is there a way to set the class of a link in link_to_remote? I tried
adding :class => “this_damn_class” after the :url hash and it didn’t
work.

I went ahead and did it manually using remote_function, i.e.

My Link

Am Samstag, den 04.03.2006, 10:47 +0100 schrieb Boram Y.:

Is there a way to set the class of a link in link_to_remote? I tried
adding :class => “this_damn_class” after the :url hash and it didn’t
work.

I went ahead and did it manually using remote_function, i.e.

My Link

<%= link_to_remote ‘Select’, { :update => ‘group_selector’, :url =>
{ :action => ‘select_group’, :id => @customer } }, :class => ‘button’ %>


Norman T.

http://blog.inlet-media.de

of course there is:

<%= link_to_remote( “name”, {:update => “mydiv”, :url => {:action =>
“my_action”}}, {:class => “my_class”} )%>

Thanks everyone. I had my brackets in the wrong places.