i found this post in stack overflow rubymine error: You have already activated rake 10.0.3, but your Gemfile requires rake 0.9.6. Using bundle exec may solve this
that
Go to Run -> Edit Configurations, select the BUNDLER tab, and click the checkbox "Run the script in context of the bundle (bundle exec)"