Rails 3 on Windows

原始地址:http://matt-hulse.com/articles/2010/08/25/another-go-with-rails-3-on-windows/

 

It has been awhile since we last looked at Rails 3 on Windows and a lot has changed.

Start by downloading and installing Ruby 1.9.2p0 from here.

Once installed, open a command prompt and install rails:

gem install rails --pre --no-ri --no-rdoc

Create a new rails app:

rails new TestRails3

Now make sure the dependencies are met:

cd TestRails3
bundle install

(at this point, more work may need to be done to get sqlite working. You can download the dll fromhere. Copy the dll into the System Path. I use C:\Tools and add that directory to the path. The Ruby bin directory works too.)

Now create some scaffolding:

rails g scaffold post title:string body:text
rake db:migrate


And start the server:

rails server

Navigate to http://localhost:3000/posts and see that everything is working.
You are now riding Rails 3 on Windows!

 

你可能感兴趣的:(windows,sqlite,Ruby,Rails,Go)