get '/user/:id' => sub { if( my $user = User->find( param('id') ) ) { fill_in_form($user); return template 'user/edit', { id => $user->app_user_id }; } not_found "User not found"; };
get '/user/:id' => sub { if( my $user = User->find( param('id') ) ) { fill_in_form($user); return template 'user/edit', { id => $user->app_user_id }; } not_found "User not found"; };