Re: [Catalyst] forward not working correctly ?

2015-01-29 Thread Octavian Rasnita
From: "Luca Ferrari" Hi all, I'm surely missing something in my action: sub edit : Local Form { my ( $self, $c, $id ) = @_; my $form = $self->formbuilder(); ... if ( $is_form_ok ){ ... $c->forward( 'list' ); } else { ... } } The result is that the same page

Re: [Catalyst] forward not working correctly ?

2015-01-29 Thread QE :: Felix Ostmann
Hi, i guess you are confused by all the different type of redirects, forwards, visits ... After your explanation i think you want a HTTP-Redirect ( http://www.catalystframework.org/calendar/2007/13) / redirect_to_action Please read about visit, go, forward and detach in the documentation: ​(​ ht

[Catalyst] forward not working correctly ?

2015-01-29 Thread Luca Ferrari
Hi all, I'm surely missing something in my action: sub edit : Local Form { my ( $self, $c, $id ) = @_; my $form = $self->formbuilder(); ... if ( $is_form_ok ){ ... $c->forward( 'list' ); } else { ... } } The result is that the same page (the form for t

Re: [Catalyst] problem with DBIx, Catalyst and PostgreSQL

2015-01-29 Thread Luca Ferrari
Oh what a shame! Apologize for the noise, the model was 'Smickets::Worker' and not 'Smickets::Workes'. I found out dumping the $c->model( 'Smickets' ) hash Sorry for the noise. Luca On Thu, Jan 29, 2015 at 11:20 AM, Luca Ferrari wrote: > Hi all, > I'm working on an application and I've a pr

[Catalyst] problem with DBIx, Catalyst and PostgreSQL

2015-01-29 Thread Luca Ferrari
Hi all, I'm working on an application and I've a problem I cannot resolve. I've a postgresql database with a workers table, loggin of queries is on. I've created the schema with: % perl script/smickets_create.pl model SmicketsDB DBIC::Schema Smickets::Schema create=static dbi:Pg:dbname=smicketsdb