Reputation:
I have a rails app i've been working on for a while and it was always working and testing fine. Then for some reason today when I tried rake db:migrate I get the message below. I have started using git recently. Whether that has anything to do with it I don't know.
Gem::LoadError: You have already activated rake 10.5.0, but your Gemfile requires rake 10.4.2. Prepending bundle exec
to your command may solve this.
If i type bundle exec rake db:migrate it seems to complete the migration the issue now is that in the new view when the user hits the submit button the create action isn't called. So the data isn't entered into the database.
Any ideas would be great. Thanks.
Upvotes: 1
Views: 2621
Reputation: 131
In my case
bundle install
(for new project) I had rake (10.5.0)
in new project's Gemfile.lockrvm gemset use <gemsetname>; gem uninstall rake
+ select 10.5.0 (asked in console)rake (10.4.2)
in new project's Gemfile.lockUpvotes: 0
Reputation: 623
You have to run bundle update
on the terminal. I was also facing the same issue but after bundle update everything got fixed.
Upvotes: 8