I do not know, it doesn't look specific to me: how else can you store data in a
form (if you do not want to use cookies)?
Alexey.
On 22 Mar 2013, at 10:53, Dheeraj Kumar wrote:
> It feels like a very specific use case. Can you suggest any generic uses for
> it?
>
> --
> Dheeraj Kumar
>
> On Friday 22 March 2013 at 3:11 PM, Alexey wrote:
>
>> I have submitted this PR 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.