Ruby gems and Windows don’t always get on – only try doing Rails projects on a Windows 7 machine if you’re feeling brave.
Downloads:
RubyMine
RubyInstaller for Windows (contains RubyGems, so you don’t need to download the gems separately)
In RubyMine,
File > New Project…
Specify the project name and set the Project type to ‘Rails application’. Click ‘OK’
Set the Ruby Interpreter to the Ruby installation (click the button next to the dropdown)
Click the button next to the Rails Version dropdown to install the Rails gem
Tick the ‘Preconfigure for selected database’ box and select ‘postgresql’
Wait for RubyMine to generate the project files
Replace the
gem 'pg'
line in the project’s Gemfile with
gem 'pg', '0.9.0', :require => 'pg'
– the latest version at this time won’t work with Windows 7
Tools > Bundler > Install
You’ll now be able to run rake tasks.
Very very helpful post, thanks a lot!