Re: HOWTO: Set up Ruby on Rails in Windows

Magnesium2431 wrote:
vin wrote:

Here's a quick Howto on setting up Ruby on Rails for Windows.

5. Create a test application by issuing this command in a terminal/command prompt:

rails testApp

I needed:

rails new testApp

I was going to suggest that, Thanks for clarifying this to new members.

I believe that using the latest version users need to add " rails new applicationtitle"

Last edited by adrianwinston (2010-09-23 11:24:49)

Re: HOWTO: Set up Ruby on Rails in Windows

Do I in fact have to use Mac OS X as a replacement for? Or is it possible to use Instant Rails to set up my production server on Windows?

Last edited by patsycannon85 (2010-10-13 05:45:03)

Re: HOWTO: Set up Ruby on Rails in Windows

hamzaz wrote:

Thanx ..no 1000 thanx for this great tutorial ...i used Ruby before for simple applications now it`s time for Rails ........
Instant Rails is too great and simple too .
i added some more RubyOnRails Resources at my blog
http://webtho.goomedic.com/misc/ruby-on … orials-01/
Hamza

Loved your blog.
Keep up the good work.
website design northamptonshire

Last edited by NatalieSmith01 (2011-02-06 13:20:35)

Re: HOWTO: Set up Ruby on Rails in Windows

I got ruby on rails to work in windows 7 (feb 2011) as follows:

1. Download ruby and install.
2. Download the ruby gems ZIP folder and place somewhere easy to get to.
3. Go to DOS (cmd.exe), navigate to your Ruby directory and type the following:
ruby C:\LOCATION OF RUBYGEMS FOLDER\setup.rb
3.5 specify your ruby directory via this step-by-step guide http://www.computerhope.com/issues/ch000549.htm
4. run this:
gem install.rails --include-dependencies (NB when you firewall shouts at you, let rails access the web).
4.5 if the above does not work (Rub187) try this: gem install rails --include-dependencies
5. gem install mysql
6.  rails new projectname -d mysql
7. follow instructions here to make sure you use 'mysql' NOT 'mysql2' (http://www.seanmccambridge.com/articles … windows-7/)
7.5 you may need to your database.yml file (within config directory of your project) to specify mysql NOT mysql2 too.
8. rails server
9. navigate here to see ruby on rails http://localhost:3000/

PS I've been editing this post to add other useful bits from the previous messages smile

Last edited by aca98atw (2011-02-10 13:37:28)

Re: HOWTO: Set up Ruby on Rails in Windows

another related question:How to switch to production mode?
http://www.longhowl.com/howls/176

Re: HOWTO: Set up Ruby on Rails in Windows

Very nice, but is seriously outdated!!
I recommed this tutorial for all : http://ruby.railstutorial.org/ruby-on-r … orial-book

See ya!!

Re: HOWTO: Set up Ruby on Rails in Windows

nice)) thanx for the updated tutorial. just one question: can download the tutorial from somewhere or is it online only?

Last edited by Safalex (2012-07-07 09:30:06)

Re: HOWTO: Set up Ruby on Rails in Windows

This is really an useful piece of information. Thanks for sharing.


College Papers

Re: HOWTO: Set up Ruby on Rails in Windows

Thanks! we get some info ha?


------------------------------------
Boxing Glove

Last edited by BarbaraStele (2011-09-22 00:24:13)

Re: HOWTO: Set up Ruby on Rails in Windows

Hi, Im very new to this kind of thing I was just wondering If i could get some help on setting this up.

I am on step 6. In command prompt when I type "C:\testApp>ruby script/server" in testApp I get this message:

No such file or directory -- script/server <LoadError>

I made the folder rails and managed to get testapp to appear in it and I also directed command prompt to C:\testApp

I am running windows 7 if it helps to know

Thanks

Re: HOWTO: Set up Ruby on Rails in Windows

It's just "rails server" not "rails script/server"

Here's a nice guide to using the rails command: http://guides.rubyonrails.org/command_line.html

Re: HOWTO: Set up Ruby on Rails in Windows

I didn' t manage to Set up Ruby on Rails in Windows. Can you please explain in details? Thanks. Math tutor