Good Luck!
Subscribe to my most-recent-items feed and know when new tutorials are posted:
My Other Tutorials:
Tutorial: How to Install the Android SDK on Windows XP and Create an Application that Runs in the Cell Phone Emulator
How to Install the Android SDK on Windows XP and Create an Application that Runs in the Cell Phone Emulator
Tutorial: Install Java on Windows XP and Learn the Basics of Java 6 using the NetBeans IDE
Install Java on Windows XP and Learn the Basics of Java 6 using the NetBeans IDE
Tutorial: How to Create a Website with Datapod
How to Create a Website with Datapod
Tutorial: Install a PHP Development Environment with Eclipse PDT, Apache 2.2, PHP 5, MySQL 5, and phpMyAdmin Using XAMPP Lite
Install a PHP Development Environment with Eclipse PDT, Apache 2.2, PHP 5, MySQL 5, and phpMyAdmin Using XAMPP Lite
Tutorial: Install Fedora 6 in VMWare on Windows XP and connect it to your network
Install Fedora 6 in VMWare on Windows XP and connect it to your network
Tutorial: Install Perl 5 on Windows XP and Get a Perl Hello World Running
Install Perl 5 on Windows XP and Get a Perl Hello World Running
Tutorial: Install Ubuntu 7.04 in VMWare on Windows XP and connect it to your network
Install Ubuntu 7.04 in VMWare on Windows XP and connect it to your network
Tutorial: Setup a PHP Development Environment on Windows XP With Apache, PHP 5, MySQL 5, SQLite, Eclipse, Subversion, PHPMyAdmin, and Datapod
Setup a PHP Development Environment on Windows XP With Apache, PHP 5, MySQL 5, SQLite, Eclipse, Subversion, PHPMyAdmin, and Datapod
Tutorial: Install OpenSuse 10.2 in VMWare on Windows XP and connect it to your network
Install OpenSuse 10.2 in VMWare on Windows XP and connect it to your network
T U T O R I A L  
1. Download Instant Rails  2. Install 7-Zip  3. Install Instant Rails  4. Install Java  5. Install JEdit  6. Configure JEdit for Ruby  7. Create Rails Application  8. Make Members Page  9. Setup Database  10. Install Firefox SQLite Manager and Add Data  11. Display Data from Database on Page
11. Display Data from Database on Page
We will now display the three records we created in the database onto a web page.
1.
Add the following code to the members_controller.rb file.
add to members controller
post comment or question
2.
Add the following code to the app/views/members/index.rhtml view file.
add to view
post comment or question
3.
You will see the records displayed on your page.
show results from database
Ndede, Migot: Very straight forward and cool short and to the point tutorial. Did not have a any problems. First time did install Ruby on Rails, took me about one hour and it worked like a charm the first time. Good job and keep it up.
arrow pointing right
reply
Cris LeMaster: Thank you for creating such a great tutorial. I fumbled through several books with no success. This tutorial was very well thought out and you are a good teacher.
arrow pointing right
reply
Amos: Thank you for a great tutorial. I did fine until the last step. It seems that my InstantRails installed MySql and not sqlite3. I have Sqlite3 and the manager, and the datanbase was created fine, but when I load InstantRail it does not activate the database. What do I do next?
arrow pointing right
James: Amos, I am not sure what problem you ran into, but mine seemed similar. However, after rebooting and refreshing my system, starting the Instant Rails again and going to the localhost:3000/members, it loaded properly and as expected. Not sure why it happened. I do know that I left my computer for a couple hours in between step 10 and step 11. Maybe there were resource issues.
arrow pointing right
reply
James: Your tutorial is amazing and wonderful!! Good job! ...I am new to Ruby and Ruby on Rails. I am driven to do it because I found Radiant CMS and it is done in Ruby. So, I want to be able to work with it locally and then use it on the web. I don't know what I would have done without your great tutorial! reply
Yuly: Hello, Thank you so much for your tutorial. You made it sooo easy! thank you! =) reply
post comment or question
This site was made with Datapod.