10 months ago, I start my Ruby & Rails life, installation method at that time is greatly improve after that time, the Rails Installer also seems stop maintain since then. So here is another more professional way to install Ruby & Rails in Windows:
Download RubyInstaller and DevKit instead of Rails Installer, which is more frequently update.
Install RubyInstaller at
C:\Ruby193
(must Driver C, other will cause some sophisticated problem in windows).Extract DevKit.exe to
C:\DevKit
.Binding the DevKit to Ruby, in order to install C extension gems later:
C:\git>cd \devkit C:\DevKit>ruby dk.rb init C:\DevKit>ruby dk.rb install --force
Install ansicon - Process ANSI escape sequences for Windows console programs, extract the ansicon.exe to
C:\Windows
Change
Programs\Ruby 1.9.3-p374\Start Command Prompt with Ruby
shortcut properties, appendC:\Windows\ansicon.exe
at the begining to Shortcut->Target.Install GitExtensions, version 2.44 Setup Complete recommand but other version may also very stable, if you download not Complete version, also need to install msysgit and kdiff3.
Install node.js, latest version, which need by some gems like execjs.
Install ActivePython, version 2.7, which need by some gems like pygments.
Enter
Start Command Prompt with Ruby
, make sure git is available bygit version
.git clone git://github.com/Eric-Guo/bootstrap-rails-startup-site.git
to clone a rails template application.Install RubyGems by below command
C:\git>gem update --system C:\git>gem upgrade C:\git>gem install pry-debugger C:\git>gem install bundle C:\git>gem install ruby-oci8 C:\git>cd pl-form C:\git\pl-form>bundle install
Install RubyMine, open
C:\git\pl-form
as Directory and then click Debug(Shift-F9) to install relative debug gems.Patch webbrick httpresponse.rb file line 204:
#if chunked? || @header['content-length'] if chunked? || @header['content-length'] || @status == 304 || @status == 204