On Mon, Mar 10, 2008 at 08:49:56AM -0700, Daniel Bretoi wrote:
> I have something like this:
>
> <form>
> <input type="radio" name="user[name]" value="">
> <input type="radio" name="user[email]" value="">
> </form>
>
> And I was hoping to see
>
> $ARGS = {
> 'user' => {
> 'name' => 'daniel',
> 'email' => '[EMAIL PROTECTED]',
> }
> };
That's not how forms work; Rails isn't the web. You'll need to do it yourself.
Look at e.g. CGI::Expand and Catalyst::Plugin::Params::Nested.
Adding the foo[bar] syntax to CGI::Expand would be a pretty nice patch, if you
wanted to send it in -- I'm sure you're not the only one who'd like to use
that.
hdp.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users