1
$ rails generate rspec:install

/Users/AlbertoRDZ/Desktop/rails_projects/sample_app/config/application.rb:7:in `<top (required)>': undefined method `groups' for Rails:Module (NoMethodError)
    from /Users/AlbertoRDZ/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.9/lib/rails/commands.rb:15:in `require'
    from /Users/AlbertoRDZ/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.9/lib/rails/commands.rb:15:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'
1

1 Answer 1

1

Maybe it works with the following:

In config/application.rb substitute

if defined?(Bundler)
Bundler.require(*Rails.groups(:assets => %w(development test)))
end

with

Bundler.require(:default, Rails.env) if defined?(Bundler)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.