-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thanks! Now it works.
Alejandro Imass wrote: > You can override the default serializers: > > __PACKAGE__->config( > 'default' => 'application/json', > 'stash_key' => 'rest', > 'map' => { > 'text/html' => [ 'View', 'TT', ], > 'text/xml' => [ 'View', 'TT', ], > }, > ); > > > On Tue, Jun 30, 2009 at 4:07 PM, Angel Kolev<anko...@gmail.com> wrote: > Hi all > i have controller Myapp::Controller::Offers with "use parent > 'Catalyst::Controller::REST'" where all RESTed requests works fine, but > then i have Myapp::Controller::Offers::Create where i dont want > C::C::REST to work, because when i send common form with content type > 'application/x-www-form-urlencoded' to /offers/create/done i recieve 415 > "Content-Type text/html is not supported". The "done" method is: > sub done: Local: ActionClass('RenderView') > I dont want this controller to be RESTish or atleast how i can enable > text/html content types here? >> _______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkpJKvsACgkQlAw25U6UlpDefACgpRwH5cuOQAKFSNLM4Ha8HKT3 2xAAn3x+1IoEXq8NW009kf9ABk0xpFsU =DxEk -----END PGP SIGNATURE----- _______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/