Setting Up A New Rails Applications And Working With Controllers And Views
- Last Updated on: September 23, 2013
- By: scriptcrunch
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
Other Interesting Blogs

CKA Exam Study Guide: Certified Kubernetes Administrator
Passing the cloud-native Certified Kubernetes Administrator (CKA) exam is not a cakewalk. To pass the CKA exam, you should have enough hands-on

Linux Foundation Coupon for 2023
Hi Techies, I wanted to let you know about a pretty sweet deal with the Linux Foundation Coupon that is running now.

[35% 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