Creating A Rails Application:
3) Rails comes with a default webrick we server. Once your application is created , you can check if it is working by starting the rails server. You can access your application in the web browser using https://localhost:3000. Before starting the rails server make sure that your current directory is your application directory. In our example its rails_demo. Execute the following command to start the rails server.
$ rails server
After the server has started and if you access your application through web browser ,you will see a welcome message. Use Cntrl + C to stop the server.
Creating A Controller And And View:
View is located in /demo_rails/app/views/welcome/index.html.erb