Creating and running first application on rails

After setting up rails environment create your first rails application by using following command.

rails new appname
cd appname
rails s
Open up the browser and
Go to http://127.0.0.1:3000/

You are done with your first application.