After picking up the basics on Ruby, I begin my journey on learning Rails. There’re many tutorials out there, but I decided to follow this: http://ruby.railstutorial.org/ruby-on-rails-tutorial-book since it is easy to follow and the chapters are arranged to be followed top down till the end. The style of writing and teaching suits me pretty well.
This is a quote from the introduction page on the site:
The Ruby on Rails Tutorial helps you learn Rails by example through the development of a substantial sample application, including a site layout, a user data model, a full registration and authentication system, user-micropost associations, social “following”, and a feed of status updates.
So, if I manage to folllow through the entire tutorial, I should be able to come out with a web app that can let user do posting, sign-in and out with a decent front end look.
This ebook tutorial has 11 chapters in total, and I just finished the first 2 chapters and I already have this: http://lit-stream-8100.herokuapp.com/users. A simple web app that is deployed and running! The steps taken to do this is pretty simple, it goes like this:
- Create a rails project
- Prepare the Gemfile and install the Gems
- Setup a Github backup (optional)
- Generate resources using scaffold generate
- Migrate database using Rake
- Deploy to heroku
Chapter 2 basically gives a bird eye view on a rails application, and an introduction to the MVC pattern used. However, many of the details are not discussed in depth yet, but well, I got a taste of a running web app in Rails already. 🙂