What is Ruby on Rails?

What is Different about Rails?

Ruby on Rails is in its own class and is different than other frameworks.

What is Ruby?

You don’t need to be fluent in Ruby to learn Ruby on Rails. In fact, many people learn Rails and do not know a Ruby but you must understand programming.

Ruby is A Multi –Paradigm Language

Everything is an object

When working in Ruby, its is important to understand that it treats EVERYTHING as an object

Objects can have methods

Syntax of Ruby

Ruby syntax is similar to Perl and Python

Keywords signal class and method definition

What is different?

RubyGems

code

  1. gem install mygem

Windows & Linux Systems

How to install Ruby on Rails

Step 1

First open any web browser (mine is Google chrome) to search RailsInstaller and open RailsInstaller.org official page.


Step 2

Step 3

Now you will find the RailsInstaller package and open that package to start the installing process.

Step 4

After opening the RailsInstaller package, it requires you to accept all of the licensing agreements. To accept click next button.

Step 5

After clicking the next button open the installation destination and optional tasks window to click browse button and select the RailsInstaller to install folder location, then tick the recommended packages and click the install button.

Step 6

After you click the install button now open the Installing window and the RailsInstaller installs all the included packages. It will take a few minutes so wait until it completes the installing process.

Step 7

After completing the installing process then open the completing the Rails Installer setup wizard to tick the configure Git and ssh when installation has completed checkbox and click Finish button to complete the installation.

Step 8

When you click the Finish button automatically open the Rails environment configuration command prompt; it requires completion of Git configuration. Enter the username (your name) it will give an example above the current line.

Step 9

After entering the username it requires user email (your email).

Step 10

After completing the Git configuration it will automatically configure ssh configuration to locate user files to show the command prompt and the RailsInstallation is completed.

Step 11

If you'd like to know what version of Ruby is installed in your system enter this code at the command prompt:

Code

  1. Ruby -v

Step 12

If you'd like to know what version of SQLite is installed in your system enter this code at the command prompt:

Code

  1. sqlite --version

Step 13

If you'd like to install gems in rails for package management enter this code at the command prompt -- it will take some minutes for installing packages

Code

  1. gem install rails

Step 14

If you'd like to know what version of Rails is installed in your system enter this code in command prompt:

Code

  1. rails --version

Step 15

The command prompt works to close the command prompt: Use exit code to close the window then you can see your applications in the sites folder (all the app files for Rails) C:/sites.

Step 16

After opening the sites folder you will see the created applications in the app folder.

Conclusion

I hope you understood what Ruby on Rails is and how to install Ruby on Rails in your machine. In future articles you will learn Ruby on Rails step by step.