Karthikragunath Bhavani
2008-May-06 06:56 UTC
calling controller method on selecting drop down box
hi all, i want to call a method in a controller by selecting a option in drop down box.can i do it without using javascript.is there any onSelect like option which can call a method in controller.now im using select_tag option for that drop down box.im new to ror.guys please help me. -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Javascript is ideal for trapping the browser events and when combined with rails, it works quite nicely. You do not want to use Javascript because of limitations on your client browser? or because you do not want to write Javascript yourself? If the latter, with rails, there are helpers that allow you to do this easily withing your rails code. http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/d8f6e5914bbfbb39 --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---