[Rails] Re: Simple question about submit

2010-07-08 Thread Rob Nichols
Marnen Laibow-Koser wrote: Rob Nichols wrote: Marnen Laibow-Koser wrote: Whatever the form tag's action is. Also, if no action is specified via the form tag, the form is submitted to the current url. So if 'thing/edit/1' contained: form input type=submit / /form The form would

Re: [Rails] Re: Simple question about submit

2010-07-08 Thread Colin Law
On 8 July 2010 09:04, Rob Nichols li...@ruby-forum.com wrote: Marnen Laibow-Koser wrote: Rob Nichols wrote: Marnen Laibow-Koser wrote: Whatever the form tag's action is. Also, if no action is specified via the form tag, the form is submitted to the current url. So if 'thing/edit/1'

Re: [Rails] Re: Simple question about submit

2010-07-08 Thread Michael Pavling
On 8 July 2010 09:04, Rob Nichols li...@ruby-forum.com wrote: Marnen Laibow-Koser wrote: No.  form without an action is invalid HTML, so its behavior is undefined.  An action must always be specified. Thank you for that comment on what should happen. However, the fact remains that if you

Re: [Rails] Re: Simple question about submit

2010-07-08 Thread Michael Pavling
On 8 July 2010 09:09, Colin Law clan...@googlemail.com wrote: If you develop a website that does not generate valid html then next week an update to IE may break the website and your clients/users will not be happy. *ahem* one may develop websites with valid html and *this* week, and find the

[Rails] Re: Simple question about submit

2010-07-06 Thread Rob Nichols
Marnen Laibow-Koser wrote: Whatever the form tag's action is. Also, if no action is specified via the form tag, the form is submitted to the current url. So if 'thing/edit/1' contained: form input type=submit / /form The form would be submitted back to 'thing/edit/1' -- Posted via

[Rails] Re: Simple question about submit

2010-07-06 Thread Ralph Shnelvar
Rob and Marnen: Thank you! I am now curious why the designers of HTML put the place to go on the form tag rather than on the input type=submit / tag. Ralph -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on

[Rails] Re: Simple question about submit

2010-07-06 Thread Marnen Laibow-Koser
Ralph Shnelvar wrote: Rob and Marnen: Thank you! I am now curious why the designers of HTML put the place to go on the form tag rather than on the input type=submit / tag. My guess: the idea is that the action is a property of the *form*, not the submit button. But take this up on

[Rails] Re: Simple question about submit

2010-07-06 Thread Marnen Laibow-Koser
Rob Nichols wrote: Marnen Laibow-Koser wrote: Whatever the form tag's action is. Also, if no action is specified via the form tag, the form is submitted to the current url. So if 'thing/edit/1' contained: form input type=submit / /form The form would be submitted back to

[Rails] Re: Simple question about submit

2010-07-05 Thread Marnen Laibow-Koser
Ralph Shnelvar wrote: It's such a simple question ... and I can't find an answer. Because it's a basic HTML question, not a Rails one. When I put up a form and I have a submit button ... cleary when the user clicks on it a uri is generated. What is that uri? Whatever the form tag's action