This seems quite specific to me too. It would be nice in a gem. But I don't 
think it should go into rails core.


On Friday, March 22, 2013 10:41:23 AM UTC+1, Alexey wrote:
>
> I have submitted this PR <https://github.com/rails/rails/pull/9622> without 
> any discussion, but maybe i should have asked here first: what do you think 
> about adding new Action View helpers to generate hidden input fields from a 
> nested hash?
>
> This can be used to store data in HTML form instead of cookies. I would 
> work like this:
>
> hidden_field_tags_from_nested_hash({ :a => { :b => ['c', 'd']}, 'e' => 5 }, 
> :id => nil)
>
> Output:
>
> <input name="a[b][]" type="hidden" value="c" /><input name="a[b][]" 
> type="hidden" value="d" /><input name="e" type="hidden" value="5" />
>
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to