Permalink
Browse files

Fix various extra whitespace, debug p

  • Loading branch information...
1 parent 4bd8407 commit 5435879b46106050fe64a7a6d688f9b52ffd4a90 @mistydemeo committed Aug 11, 2012
Showing with 2 additions and 3 deletions.
  1. +1 −1 config/database.yml
  2. +1 −2 helpers.rb
View
@@ -2,7 +2,7 @@ development:
adapter: sqlite3
encoding: utf8
database: db/development.db
-
+
test:
adapter: sqlite3
encoding: utf8
View
@@ -20,7 +20,7 @@ def input_errors mode
elsif mode == :lost
required_fields.concat ["seen"]
end
-
+
required_fields.select do |field|
not params[field]
end
@@ -36,7 +36,6 @@ def invalid_query_response
def invalid_input_response_for errors
if not json_requested?
- p errors
erb :error, :locals => {:errors => errors}
else
{"errors" => [{"message" => "Missing input(s)", "code" => 400, "missing" => errors}]}

0 comments on commit 5435879

Please sign in to comment.