Although I have never used two form submits in a single form, but perhaps you can use "value" to pass id instead of using params.
Thanks, Abhinav -- अभिनव http://twitter.com/abhinav On Tue, Sep 15, 2009 at 12:40 PM, Matt <[email protected]> wrote: > > Hi > > I have the following code: > <%= f.submit 'First', :class => "mybutton", :myid=> "xx" %> > <%= f.submit 'Second' %> > > I would have expected to use params[:myid] to check which submit > button was pressed but it does not seem to register the params value. > > Or is it just not possible to check which submission button was > pressed? > > Thanks! > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

