trailblazer / roar-rails

Use Roar's representers in Rails.
http://roar.apotomo.de
MIT License
235 stars 65 forks source link

ActionController::Responder (NameError) - Rails 4.2 (4.1 OK) #112

Closed PaulBabka closed 9 years ago

PaulBabka commented 9 years ago

Hi @apotonick,

Huge fan of your work!

Running into issues with Rails 4.2. I haven't had time to investigate, but passing this on in the mean time...

No issues with Rails 4.1 app, but errors on a brand new app with Rails 4.2.

Run into this with a "rails c":

/Users/user/.rvm/gems/ruby-2.1.1/gems/roar-rails-0.1.6/lib/roar/rails/rails4_0_strategy.rb:2:in <module:Rails>': uninitialized constant ActionController::Responder (NameError) from /Users/user/.rvm/gems/ruby-2.1.1/gems/roar-rails-0.1.6/lib/roar/rails/rails4_0_strategy.rb:1:in<top (required)>' from /Users/user/.rvm/gems/ruby-2.1.1/gems/roar-rails-0.1.6/lib/roar-rails.rb:34:in require' from /Users/user/.rvm/gems/ruby-2.1.1/gems/roar-rails-0.1.6/lib/roar-rails.rb:34:inmodule:Rails' from /Users/user/.rvm/gems/ruby-2.1.1/gems/roar-rails-0.1.6/lib/roar-rails.rb:21:in <module:Roar>' from /Users/user/.rvm/gems/ruby-2.1.1/gems/roar-rails-0.1.6/lib/roar-rails.rb:20:in<top (required)>' from /Users/user/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.6.1/lib/bundler/runtime.rb:76:in require' from /Users/user/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.6.1/lib/bundler/runtime.rb:76:inblock (2 levels) in require' from /Users/user/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.6.1/lib/bundler/runtime.rb:72:in each' from /Users/user/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.6.1/lib/bundler/runtime.rb:72:inblock in require' from /Users/user/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.6.1/lib/bundler/runtime.rb:61:in each' from /Users/user/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.6.1/lib/bundler/runtime.rb:61:inrequire' from /Users/user/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.6.1/lib/bundler.rb:132:in require' from /development/test_app/config/application.rb:7:in<top (required)>' from /Users/user/.rvm/gems/ruby-2.1.1/gems/spring-1.3.2/lib/spring/application.rb:82:in require' from /Users/user/.rvm/gems/ruby-2.1.1/gems/spring-1.3.2/lib/spring/application.rb:82:inpreload' from /Users/user/.rvm/gems/ruby-2.1.1/gems/spring-1.3.2/lib/spring/application.rb:143:in serve' from /Users/user/.rvm/gems/ruby-2.1.1/gems/spring-1.3.2/lib/spring/application.rb:131:inblock in run' from /Users/user/.rvm/gems/ruby-2.1.1/gems/spring-1.3.2/lib/spring/application.rb:125:in loop' from /Users/user/.rvm/gems/ruby-2.1.1/gems/spring-1.3.2/lib/spring/application.rb:125:inrun' from /Users/user/.rvm/gems/ruby-2.1.1/gems/spring-1.3.2/lib/spring/application/boot.rb:18:in <top (required)>' from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:inrequire' from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require' from -e:1:in

'

apotonick commented 9 years ago

You need to add the responders gem to your Gemfile.

PaulBabka commented 9 years ago

Fantastic. Many thanks!

apotonick commented 9 years ago

My pleasure!! :stuck_out_tongue_winking_eye: