[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cgiapp] Re: ActionDispatch setup


Neil Best wrote:

> I am jumping in with both feet in writing my first C::A app by using the
> ActionDispatch plugin [1].  In my reading the docs suggest that there is
> no need to setup the run modes, that is if I have in MyApp.pm
> 
> sub fiveDigitCofips : Path('cofips/(\d{5})') { . . . }
> 
> then surfing to myapp.cgi/cofips/17031 should be sufficient but in
> error.log I get
> 
> No such run mode 'fiveDigitCofips' at .../myapp.cgi line 8
> 
> Am I oversimplifying the initialization of the app?  Can anyone point me
> to a relevant example?  Thanks.

Neil,

The distribution of this plugin shows related examples of how to use it:

http://search.cpan.org/src/JAYWHY/CGI-Application-Plugin-ActionDispatch-0.02/example/WebApp/Cart.pm
http://search.cpan.org/src/JAYWHY/CGI-Application-Plugin-ActionDispatch-0.02/t/

  Mark



---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.