Re: [Rails] what happens when i press submit

2011-02-18 Thread Colin Law
On 18 February 2011 12:32, seeni khan wrote: > It will update the record with the data from" _form.html.erb" when u press > it. Not necessarily. It will initiate the action specified or implied by the form_for statement. Whether that updates a record or not depends on what is coded in that act

Re: [Rails] what happens when i press submit

2011-02-18 Thread radhames brito
Look at the html of the form, it says for example action= "user/create" method="post" it means the form will be send to the server with a post to the path user/create rails router it RESTful (read about REST), if you type rake route i

Re: [Rails] what happens when i press submit

2011-02-18 Thread seeni khan
It will update the record with the data from" _form.html.erb" when u press it. -- 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@googlegroups.com. To unsubscribe from this group, send em

Re: [Rails] what happens when i press submit

2011-02-18 Thread Jim Ruther Nill
use f.submit 'Your custom label' to override. After pressing the button, you will be passed to the action of the form of the button you pressed. On Fri, Feb 18, 2011 at 8:24 PM, rogi wrote: > in _form.html.erb there is submit button > <%= f.submit %> > > the button is labeled "Update Tablenam

[Rails] what happens when i press submit

2011-02-18 Thread rogi
in _form.html.erb there is submit button <%= f.submit %> the button is labeled "Update Tablename". Can someone tell me, how to change it and what exatly happens, when i press submit? BR Rogi -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" grou