[Catalyst] FormBuilder - Can't locate object method "form" via
package
Joshua McAdams
joshua.mcadams at gmail.com
Mon Feb 25 18:46:38 GMT 2008
> sub edit : Local Form {
> my ($self, $c) = @_;
> if ($c->form->submitted && $c->form->validate) {
> $c->stash->{message} = 'Thanks for submitting the form';
> }
> }
Use $self->formbulder instead of $c->form. That chapter suffered from
a quick rewrite and some of the examples use and older syntax for
accessing formbuilder.
More information about the Catalyst
mailing list