[Melbourne-pm] issues with Catalyst::Controller::REST example

Jacinta Richardson jarich at perltraining.com.au
Mon Jan 17 03:45:36 PST 2011


> ... can anyone give me some pointers (or a better example) to get me
> started?  Thanks

I *think* (but I"m guessing) that the example should say:

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

        my $radiohead = $c->req->data->{radiohead};

        $self->status_created(
            $c,
            location => $c->req->uri->as_string,
            entity => {
                radiohead => $radiohead,
            }
        );
    }

All the best,

	J

-- 
   ("`-''-/").___..--''"`-._          |  Jacinta Richardson         |
    `6_ 6  )   `-.  (     ).`-.__.`)  |  Perl Training Australia    |
    (_Y_.)'  ._   )  `._ `. ``-..-'   |      +61 3 9354 6001        |
  _..`--'_..-_/  /--'_.' ,'           | contact at perltraining.com.au |
 (il),-''  (li),'  ((!.-'             |   www.perltraining.com.au   |


More information about the Melbourne-pm mailing list