My first experience with Rails

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:

  1. Create a rails project
  2. Prepare the Gemfile and install the Gems
  3. Setup a Github backup (optional)
  4. Generate resources using scaffold generate
  5. Migrate database using Rake
  6. 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. 🙂

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s