February 28, 2015

Home » » » How To Install Ruby On Rails Framework On Windows and Linux

How To Install Ruby On Rails Framework On Windows and Linux

Posted by Unknown
1


To develop a web application using Rails framework, need install some software:
  • Ruby
  • Rails framework (current version rails 4.2.0 )
  • A database system (MySQL, SQLite, PostgreSQL, ...)
  • A web server (Use webrick web server on local, in production: apache, nginx, ...)

1. Install ruby

 Install ruby on windows and linux

2. Install Rails framework


# gem install rails --include-dependencies

3. Create first application

# rails new sample_app
If you want to use MySQL:
# rails new sample_app -d mysql

4. Running

# cd sample_app
# rails s
Then, open browser and type
http://localhost:3000

* Note:

To use MySQL, install MySQL server and conector(mysql2) on your computer.

May you need

Install Node.js

# apt-get install curl
# curl -sL https://deb.nodesource.com/setup | sudo bash -
# apt-get install -y nodejs





1 comment:

  1. Nice post ! Thanks for sharing valuable information with us. Keep sharing.Ruby on Rails Online Training

    ReplyDelete

Popular Posts

Labels

Archive

 

Blogroll

Recepies

Flickr Images

Copyright © 2014. Tutorials Blog - All Rights Reserved