Skip to content

Instantly share code, notes, and snippets.

@hiroyukim
Created January 16, 2012 02:57
Show Gist options
  • Save hiroyukim/1618806 to your computer and use it in GitHub Desktop.
Save hiroyukim/1618806 to your computer and use it in GitHub Desktop.
sub add {}
sub post_add {
my ($class,$c) = @_;
container('dbh')->insert({
name => $c->req->param('name'),
created_at => container('dtf')->now->strftime("%Y-%m-%d %H:%M:S")
}, table => 'member');
$c->redirect('/member/');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment