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.
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.
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.
<%= link_to_remote ‘Select’, { :update => ‘group_selector’, :url =>
{ :action => ‘select_group’, :id => @customer } }, :class => ‘button’ %>
–
Norman T.
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs