Todd Matthews
Todd Matthews

Reputation: 291

Rails 4.2 ActiveSupport Error

Im a getting an error using the command in rails 4.2.0 (not beta version)

rails g 

error:

Could not find activesupport-4.2.0 in any of the sources
Run `bundle install` to install missing gems.

but running bundle install i do have activesupport-4.2.0 installed...

Using thread_safe 0.3.4
Using tzinfo 1.2.2
Using activesupport 4.2.0  
.....

this command

bundle exec show activesupport

error

bundler: command not found: show
Install missing gem executables with `bundle install`

this command

bundle show activesupport 

output

/home/todd/.rvm/gems/ruby-2.1.4@blog/gems/activesupport-4.2.0

running

bundle exec rails g

gives me the same error as running 'rails g'


ran

echo $PATH | grep rvm

output /home/todd/.rvm/gems/ruby2.1.4@blog/bin:/home/todd/.rvm/gems/ruby2.1.4@global/bin:/home/todd/.rvm/rubies/ruby-2.1.4/bin:/home/todd/.rvm/bin:/home/todd/bin:/usr/local/bin/exercism:/usr/local/heroku/bin:/home/todd/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

Upvotes: 2

Views: 1868

Answers (2)

Todd Matthews
Todd Matthews

Reputation: 291

I think it was an rvm path problem or bad install. I just reinstalled the application and made a new rvm gem. Now it works like a charm. Thanks for the help!

Upvotes: 1

Rustam Gasanov
Rustam Gasanov

Reputation: 15781

Seems like your rails executable isn't from bundle, try:

bundle exec rails g 

Upvotes: 1

Related Questions