Setting Up A New Rails Applications And Working With Controllers And Views
- Last Updated On: September 23, 2013
- 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
[50% OFF] Kubernetes Certification Coupons (CKA, CKAD, CKS, KCNA and KCSA)
Looking for CKA coupon and other Kubernetes certification coupon codes? You have come to the right place. Following are the list of
[80% OFF] Linux Foundation Coupon for December 2024
Looking for CKA Coupon and other Linux Foundation certifications coupons? We got you covered. With the latest Linux Foundation Coupon, you can
[65% 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