sub ajax_regist : Local{ my($self, $c) = @_; $c->forward('regist_execute'); $c->stash->{template} = 'bookmark_list.tt'; }
sub delete_execute : Local { my($self, $c) = @_; if(my $r = $c->model('DBIC::bookmark') ->find({bookmark_id => $c->req->param('bookmark_id')})){ $r->delete(); }else{ $c->stash->{msg} = 'delete error - not found -'; } $c->forward('index'); }