:class in link_to_remote?


#1

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


#2

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


#3

of course there is:

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


#4

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