Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Startup error on rails 3-2-stable #1

Closed
qrush opened this issue Mar 12, 2012 · 6 comments
Closed

Startup error on rails 3-2-stable #1

qrush opened this issue Mar 12, 2012 · 6 comments

Comments

@qrush
Copy link

qrush commented Mar 12, 2012

Looks like it's not happy with:

app.config.action_dispatch.rack_cache[:verbose] = false

Maybe need to move that to after initialize? Here's the whole error:

NoMethodError: undefined method `[]=' for false:FalseClass
~/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/lograge-0.0.3/lib/lograge.rb:30:in `setup'
~/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/lograge-0.0.3/lib/lograge/railtie.rb:11:in `block in <class:Railtie>'
~/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/bundler/gems/rails-a01f0ab83981/railties/lib/rails/initializable.rb:30:in `instance_exec'
~/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/bundler/gems/rails-a01f0ab83981/railties/lib/rails/initializable.rb:30:in `run'
~/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/bundler/gems/rails-a01f0ab83981/railties/lib/rails/initializable.rb:55:in `block in run_initializers'
~/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/bundler/gems/rails-a01f0ab83981/railties/lib/rails/initializable.rb:54:in `each'
~/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/bundler/gems/rails-a01f0ab83981/railties/lib/rails/initializable.rb:54:in `run_initializers'
~/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/bundler/gems/rails-a01f0ab83981/railties/lib/rails/application.rb:136:in `initialize!'
~/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/bundler/gems/rails-a01f0ab83981/railties/lib/rails/railtie/configurable.rb:30:in `method_missing'
@roidrage
Copy link
Owner

Just tried it with 3-2-stable without being able to reproduce the error. Is this with a blank new application or one that already has some settings specified in its environments?

@qrush
Copy link
Author

qrush commented Mar 13, 2012

Definitely an existing one. I'll try to debug more soon...sorry dude.

@roidrage
Copy link
Owner

No worries. I've a sneaking suspicion what might be the problem, either caching is disabled or rack_cache's options have been set to false elsewhere, a side effect I haven't seen locally, but one that should definitely be caught somewhere. Is this in production or development mode?

@adamcooper
Copy link
Contributor

I'm getting a similar error.

I'm running rails 3.0.12.

I'm thinking my rack.cache is disabled as I'm in development mode.

@roidrage
Copy link
Owner

Cool, thanks for reporting, will look into it.

@roidrage
Copy link
Owner

This has been fixed by #4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants