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. <a class="this_damn_class" href="#" onclick="<%= remote_function ..., :url => {...} %>">My Link</a> -- Posted via http://www.ruby-forum.com/.
Am Samstag, den 04.03.2006, 10:47 +0100 schrieb Boram Yoon:> 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. > > <a class="this_damn_class" href="#" onclick="<%= remote_function ..., > :url => {...} %>">My Link</a><%= link_to_remote ''Select'', { :update => ''group_selector'', :url => { :action => ''select_group'', :id => @customer } }, :class => ''button'' %> -- Norman Timmler http://blog.inlet-media.de
of course there is: <%= link_to_remote( "name", {:update => "mydiv", :url => {:action => "my_action"}}, {:class => "my_class"} )%>> --- Urspr?ngliche Nachricht --- > Von: Boram Yoon <boram.yoon@gmail.com> > An: rails@lists.rubyonrails.org > Betreff: [Rails] :class in link_to_remote? > Datum: Sat, 4 Mar 2006 10:47:50 +0100 > > 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. > > <a class="this_damn_class" href="#" onclick="<%= remote_function ..., > :url => {...} %>">My Link</a> > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >