Subject: | New Feature: Nested arrays/hashes |
Date: | Mon, 22 Apr 2013 11:39:01 +0100 |
To: | bug-Catalyst-TraitFor-Request-Params-Hashed [...] rt.cpan.org |
From: | Christopher Causer <christopher.causer [...] it.ox.ac.uk> |
Hi,
Thank you very much for providing this module, which is proving useful
with my form submissions.
One feature that I felt it lacked was the ability to allow nested
parameters. For example
<input name="records[$record_id][name]" />
<input name="records[$record_id][content]" />
Attached is a modified Hashed.pm which can hopefully do this. I cannot
claim any credit for this. Much of it has been lifted from Rail's
ActiveSupport and converted to Perl, but I hope people will find it
useful.
Many thanks again for this very useful module.
--
Christopher Causer IT Services, University of Oxford
Network Support and Development Officer 13 Banbury Road, Oxford, OX2 6NN
(01865) 2 73244 www.it.ox.ac.uk
Message body is not shown because sender requested not to inline it.