Mamadou Touré wrote:
> Hi folks,
> 
> I have a form that I populate, and then submit with button_to_remote,
> but I would like to have all my fileds that I populated passed as
> parameters (like the params hash) with to my controller. How would you
> do that ?
> 
> Reagrds

Hi,

button_to_remote is having following syntax:

<%= button_to_remote "<button name>", :url => {:controller => 
"<controller_name>", :action => "<action_name>", :id => <id>, 
:paramterers => "<parameters_value>"}, :html => {:style => "", :class => 
""} %>

If you are trying to submit a form using ajax call, you can try for 
form_remote_tag

Might Help,

Saurabh.
-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to