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 be submitted back to 'thing/edit/1'
> 
> No.  <form> without an action is invalid HTML, so its behavior is 
> undefined.  An action must always be specified.
> 
> Best,
> -- 
> Marnen Laibow-Koser
> http://www.marnen.org
> mar...@marnen.org
> 
> Sent from my iPhone

Thank you for that comment on what should happen. However, the fact 
remains that if you don't specify a target action, browsers will send 
the submitted data to the current url. Don't confuse 'must' with 
'should'.
-- 
Posted via http://www.ruby-forum.com/.

-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to