[Catalyst] RFC: Catalyst::Plugin::EnhancedParams

Bill Moseley moseley at hank.org
Sat Apr 1 21:23:34 CEST 2006


On Sat, Apr 01, 2006 at 03:33:51PM -0300, Nilson Santos Figueiredo Junior wrote:
> Of course, you could use maybe DBIx::Class::Webform or something like that.
> But I find this much more elegant:
> 
> <form>
>   <input type="text" name="person[name]" />
>   <input type="text" name="person[email]" />
>   ...
> </form>
> 
> sub action : Local {
>     my $c = shift;
>     my $obj = $c->model('Person')->create($c->param('person'));
> }

I assume you are leaving out validation, but What happens when someone
submits:

    <input type="text" name="person[superuser]" value="1" />

-- 
Bill Moseley
moseley at hank.org




More information about the Catalyst mailing list