Changeset 63 in bookmarks for trunk/app.psgi


Ignore:
Timestamp:
09/06/13 11:47:20 (11 years ago)
Author:
peter
Message:
  • renamed controller methods:
    • create --> create_and_redirect
    • edit --> update_and_redirect
  • use Moose instrospection instead of exception handling to determine if a requested field is available on a bookmark
  • removed a debugging response line
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/app.psgi

    r61 r63  
    4848 
    4949            # create the bookmark and redirect to the new bookmark's edit form 
    50             return $controller->create; 
     50            return $controller->create_and_redirect; 
    5151        }; 
    5252    }; 
     
    8585            my $controller = get_controller($req); 
    8686 
    87             return $controller->edit($params->{id}); 
    88  
    89             return [200, ['Content-Type' => 'text/plain'], ['update ', $params->{id}]]; 
     87            return $controller->update_and_redirect($params->{id}); 
    9088        }; 
    9189    }; 
Note: See TracChangeset for help on using the changeset viewer.