Rails 3.0 Tutorial for Newbies
Hosted by Silicon Valley Ruby Meetup
Details
A step-by-step introduction to Rails 3.0 for newbies. Personal attention given to each student. The structure can be customized according to the students background.
The 4 hour session will give you enough fundamentals and also show you the usual work flow of
a Rails developer. How they go about solving problems while developing an app.
Before the Class : Installation
You need Ruby 1.8.7 or later, Rails 3.0 , Ruby gems version 1.3.7.
Ruby 1.9.1 is not compatible with Rails 3.0. Please install Ruby 1.9.2 instead. Here's a couple of links about it: See the blue note on:
https://guides.rails.i... (https://guides.rails.info/getting_started.html) says "Ruby 1.9.1 is not usable because it outright segfaults on
Rails 3.0, so if you want to use Rails 3 with 1.9.x jump on 1.9.2 for smooth sailing."
Upgrading Snow Leopard to Rails 3.0 Beta 4 (https://bparanj.blogspot.com/2010/06/upgrading-snow-leopard-to-rails-30-beta.html)
Installing Ruby 1.9.1 on Snow Leopard (https://bparanj.blogspot.com/2010/06/installing-ruby-191-on-snow-leopard.html)
Before the Class : Optional
Please follow the tutorial here :
https://guides.rails.i... (https://guides.rails.info/getting_started.html) We will be working on this blog app in the class. Some of the things on this tutorial is out dated for Rails 3.0. I will also be explaining things that is described in this tutorial from a different perspective. It usually connects all the dots together and the student will be able to see how all the concepts fit together.
Duration
4 hours
Agenda
Basic Ruby for Rails
Brief Tour of Rails Directory Structure
Blog App - Iteration One - Blog Model, View and Controller
Blog App - Iteration Two - Comment Model, View and Controller
Setting the Application Home Page
Customizing the Layout
Partials
HTTP Basic Authentication
Multi-Model Form
View Helpers
MVC and Resources
Migration
Validation - Validating data and displaying error messages
