Setting Up A New Rails Applications And Working With Controllers And Views
- Last Updated On: February 2, 2016
- By: Scriptcrunch Editorial
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
Scriptcrunch Editorial
Other Interesting Blogs
Linux Foundation Coupon for March 2024
Hi Techies, I wanted to let you know about a pretty sweet deal with the Linux Foundation Coupon that is running now.
[25% OFF] Linux Foundation LFCA, LFCS & LFCT Exam Voucher Codes
Linux Foundation has announced up to a $284 discount on its Linux certification programs Linux Foundation Certified IT Associate (LFCA) and Linux
[Solved] couldn’t get current server API group list: Get “http://localhost:8080/api?timeout connect: connection refused
Issue: When trying to access the kubernetes cluster using kubectl you might get the couldn’t get current server API – connection refuse