« Return to Thread: link_to, how do you combine url options and html_options?

Re: link_to, how do you combine url options and html_options?

by Adam Akhtar-2 :: Rate this Message:

Reply to Author | View in Thread


Älphä Blüë wrote:
> <%= link_to('Your Link', your_controller_path, :confirm => 'Are you
> sure?', :method => :post, :id => "css_id", :class => "css_class") %>

Thank you to all who replied.  I am on Rails 2.3.2 and yes, the code
above does work for me as well.  I cannot gather from the API documents
that this should work however, which is why I never tried it.
--
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

 « Return to Thread: link_to, how do you combine url options and html_options?