On 23 August 2010 21:16, Ithelp Eighty-five <[email protected]> wrote: > I want to create a button function on a main page that updates the > database, without having to open the form and editing and updating > through the form.
Do you mean you want just a button to appear, which when pressed posts some data to the edit method in the controller? If so just provide an empty form with a submit button which posts to the appropriate action, putting the data you want submitted in hidden fields in the form. Then all the user will see is the button. Colin -- 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.

