pickwick
pickwick

Reputation: 3154

Rails runs commands twice

When running my rails 4 application locally, every GET, PUT, etc. appears to run twice. I've cleaned the assets, thinking that this is causing the issue, but it does not appear to be the case. Interestingly, even commands run from the console appear to be run twice. For example, this is the output I get when asking about my users:

2.0.0-p247 :005 > User.all
  User Load (0.7ms)  SELECT "users".* FROM "users"
  User Load (0.7ms)  SELECT "users".* FROM "users"
 => #<ActiveRecord::Relation [#<User id: 1, ...

Any ideas as to what's going on would be greatly appreciated.

Upvotes: 2

Views: 496

Answers (1)

beck03076
beck03076

Reputation: 3308

I think its an open issue in Rails 4,

View this issue on github, thats exactly your case.

try this work around,

config.paths["log"] = '/dev/null'

Upvotes: 1

Related Questions