[Catalyst] returning empty 200 response

Devo Coran devincoran at yahoo.com
Fri Oct 26 20:18:16 GMT 2007


hi

This is probably a basic question but after playing
around for a few hours and going through the docs I
haven't been able to figure it out. Appreciate it if
maybe someone could point me in the right direction
for docs.

Basically I"m doing an ajax save from a text area, so
all I care about is that I get a 200 back from the
framework I don't need a body, my text hasn't gone
anywhere.

So I tried making a view to send a static response
that only does

sub process {
  my ($self, $c) = @_;
}

then in my controller i do

$c->res->status(200);
$c->res->body('');
$c->detach('MyApp::View::Static');


but the problem is it keeps going to 
/end
MyApp::View::TT->process 

and wants an unnecessary template

I thought sending it to my static view handled that,
any suggestions?

thank you for your time
Devo



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




More information about the Catalyst mailing list