diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-05-25 14:47:40 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-05-25 14:47:40 +0200 |
commit | f382c9ca28901984ede61c20914260ec944cb20a (patch) | |
tree | 1c8397184f8e9c6538d294c35edf008b1cc7b58f | |
parent | e839171db1965896d408e3362837f4ac7cee26ab (diff) |
fixing nil error
-rw-r--r-- | application.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application.rb b/application.rb index c49242a..75d4c70 100644 --- a/application.rb +++ b/application.rb @@ -314,7 +314,7 @@ post '/models' do # create a new model rescue => e LOGGER.debug "Model validation failed with #{e.message}." @model.save # to avoid dirty models - @model.update :warnings => @model.warnings + "\nModel validation failed with #{e.message}.", :status => "Error", :error_messages => e.message + @model.update :warnings => @model.warnings.to_s+"\nModel validation failed with #{e.message}.", :status => "Error", :error_messages => e.message end else |