Another go with Rails 3 on Windows
Posted by Matt Hulse on August 25, 2010|
Comments
It has been awhile since we last looked at Rails 3 on Windows and a lot has changed.
CommentsStart by downloading and installing Ruby 1.9.2p0 from here.
Once installed, open a command prompt and install rails:
gem install rails --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 from here. Copy the dll into the System Path. I use C:\Tools and add that directory to the path. The Ruby bin directory works too.)bundle install
Now create some scaffolding:
rails g scaffold post title:string body:text
rake db:migrate
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!
blog comments powered by Disqus