On 10 August 2011 16:31, Angelo Cordova <[email protected]> wrote: > Hi everyone > > I have a problem with a couple of methods I've created. > > The first method looks like the "edit" method but I've renamed to > "aprove" this method load a form with some editable fields > > def aprove > @buy_order = BuyOrder.find(params[:id]) > end > > The second method looks like "update", the name is "result", but it > should execute just after I click "submit" in the aprove form. But > when I click "submit"... the "update" method is executed instead
When you click submit in the aprove form the action that is run depends on the code in that view. It is there that you must look to see what action you have asked it to perform. 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.

