diff options
author | Martin Gütlein <martin.guetlein@gmail.com> | 2010-02-22 16:00:59 +0100 |
---|---|---|
committer | Martin Gütlein <martin.guetlein@gmail.com> | 2010-02-22 16:00:59 +0100 |
commit | a825ad79d0f06a40c7df4024d4554e32181d7c32 (patch) | |
tree | b1edfd7d9763af073bf40764618cd4ae90f844fa | |
parent | 521b7c9fae8d4def438ee8f08d6ed9d80125a09a (diff) |
task copy paste error
-rw-r--r-- | application.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/application.rb b/application.rb index b66c828..bae6572 100644 --- a/application.rb +++ b/application.rb @@ -39,7 +39,8 @@ post '/?' do task = Task.new task.save # needed to create id task.uri = url_for("/#{task.id}", :full) - task.save + raise "could not save" unless task.save + LOGGER.debug "task created" task.uri end |