Le 14 oct. 2014 à 14:29, Matt Jones <al2o...@gmail.com> a écrit :

> Haven't tried it, but does explicitly adding `form: 
> 'whatever_your_form_id_is'` to the `html_options` for an input tag do the 
> right thing?

Yes it does work, you can pass any html attribute you want and it will be use 
as-is. But I think he's asking if he can use form_for variant of helpers 
outside of the form_for block.

So you can use *_tag helpers outside of a form_for and set 'form' attributes by 
hand but you'll also need to handle value attribute.
--
Nicolas Cavigneaux
http://www.bounga.org
http://www.cavigneaux.net

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-core+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-core@googlegroups.com.
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to