RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: gonzotim
Thank you so much Ryan for the wonderful work on Railscasts.
I'm trying to work my way through this video - after I add the omniauth.rb with
Rails.application.config.middleware.use OmniAuth::Builder do
provider :twitter, '-----', '-----'
I'm unable to start my app - it throws an error saying
/Users/---/---/config/initializers/omniauth.rb:1: undefined method `application' for Rails:Module (NoMethodError)
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:171:in `load_without_new_constant_marking'
Any ideas what might be causing this? I feel like I'm making a fundamental mistake. I'm using devise 1.0.10, ruby 1.8.7 and rail 2.3.11.