« Return to Thread: button_to_remote and control values

Re: button_to_remote and control values

by bill walton-2 :: Rate this Message:

Reply to Author | View in Thread


On Thu, 2009-07-09 at 04:17 -0700, JannaB wrote:

> Is there any way I can pass the text of what is in this select box, to
> the method in my controller called by the button_to_remote? Thanks,
> Janna B

button_to_remote takes the same options as link_to_remote.  I believe the following will do what you want.

> <%=button_to_remote "Manual Up",
>    :url => { :action => "manup" },
     :submit => "notesdiv"
>    :update => "insideuplog"
> %>




--~--~---------~--~----~------------~-------~--~----~
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: button_to_remote and control values