Ringo Blancke
Ringo Blancke

Reputation: 2444

rake db:seed issue

I'm seeing a weird issue here when I run rake db:seed or rake db:migrate:

user@ubuntu:~/Desktop/staging/config$ bundle show activeresource
/usr/lib/ruby/gems/1.8/gems/activeresource-3.0.3
user@ubuntu:~/Desktop/staging/config$ rake db:seed
(in /home/rohan/Desktop/staging)
Could not find activesupport-3.0.3 in any of the sources
Try running `bundle install`.
user@ubuntu:~/Desktop/staging/config$ ruby --version
ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux]

I don't know what to do. Any help would be appreciated. For the record, I am using RVM.

Upvotes: 0

Views: 1820

Answers (3)

nickgrim
nickgrim

Reputation: 5437

On the assumption that you tried running bundle install like it asked, you probably just need to use:

$ bundle exec rake db:seed

to run rake in the context of the bundle.

Upvotes: 0

Muhammad Sannan Khalid
Muhammad Sannan Khalid

Reputation: 3137

you need to require rails in gemfile then run bundle install.

gem "rails", 'version'

now run bundle install

Upvotes: 1

Ryan Bigg
Ryan Bigg

Reputation: 107728

Run bundle install. This will fix the problem.

Upvotes: 1

Related Questions