Saturday, March 21, 2009
Workshop 4: Riding the Rails with Ruby - Challenge Problem: 2
Workshop 4: Riding the Rails with Ruby - Challenge Problem: 1
Workshop 4: Riding the Rails with Ruby - To do: 3
Workshop 4: Riding the Rails with Ruby - To do: 2
Workshop 4: Riding the Rails with Ruby - To do: 1
Workshop 3: Online Taxi Booking System: MySQL and Database design - To do: 5
a. See “Fast-track your Web apps with Ruby on Rails” at http://www-128.ibm.com/developerworks/linux/library/l-rubyrails/
b. The “Rolling with Ruby on Rails” series and “Cookbook recipes by Curt Hibbs and others beginning at http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html
Workshop 3: Online Taxi Booking System: MySQL and Database design - To do: 4
Workshop 3: Online Taxi Booking System: MySQL and Database design - To do: 3
Workshop 3: Online Taxi Booking System: MySQL and Database design - To do: 2
Workshop 3: Online Taxi Booking System: MySQL and Database design - To do: 1
Workshop 2: Model View Controller design approach - Challenge Problems: 2
Apply the MVC design approach to our Project: Online Taxi Booking System.
HINT: Begin with a single model, single view and single controller classes. This will give you a head start to the next workshop: Online Taxi Booking System: SQL and Database design
Workshop 2: Model View Controller design approach - Challenge Problems: 1
How is Rails structured to follow the MVC pattern?
The SQL table is taxis – the pluralisation of the model. In our project we have 2 tables as passenger_origin and passenger_destination, where the table row = an object instance and each of the columns = an object attribute.
The controller methods live in app/controllers/taxi_controller.rb
Each controller can access templates to display the input screen and methods for action.
In Rails, the view is rendered using RHTML or RXML. According to the wiki page at http://wiki.rubyonrails.org/rails/pages/UnderstandingViews, RHTML is HTML with embedded Ruby code and RXML is Ruby-generated XML code.
Workshop 2: Model View Controller design approach - Challenge Problems: 1
How is Rails structured to follow the MVC pattern?
The SQL table is taxis – the pluralisation of the model. In our project we have 2 tables as passenger_origin and passenger_destination, where the table row = an object instance and each of the columns = an object attribute.
The controller methods live in app/controllers/taxi_controller.rb
Each controller can access templates to display the input screen and methods for action.
In Rails, the view is rendered using RHTML or RXML. According to the wiki page at http://wiki.rubyonrails.org/rails/pages/UnderstandingViews, RHTML is HTML with embedded Ruby code and RXML is Ruby-generated XML code.
Workshop 2: Model View Controller design approach - To do: 5
Read the Flash article using ActionScript by Colin Moock titled “The Model-View-Controller Design Pattern “at http://www.adobe.com/devnet/flash/articles/mv_controller.html
Workshop 2: Model View Controller design approach - To do: 4
Got a spare hour or so? I recommend the UC Berkeley RAD lab’s Ruby on Rails Short course at http://youtube.com/watch?v=LADHwoN2LMM
Workshop 2: Model View Controller design approach - To do: 3
Further work on understanding MVC:
a. See the wiki at http://wiki.rubyonrails.org/rails/pages/UnderstandingMVC
b. Do the MVC tutorial at http://wiki.squeak.org/squeak/1767
Workshop 2: Model View Controller design approach - To do: 2
What is meant by “convention over configuration” and how does it reduce coding?
Workshop 2: Model View Controller design approach - To do: 1
Set up a focus group (like a study group for peer learning) to work on the Ruby on Rails workshops via Interact tools as a class.
Workshop 1: Setting up model railway - Challenge Problems: 6
Workshop 1: Setting up model railway - Challenge Problems: 5
Workshop 1: Setting up model railway - Challenge Problems: 4
Workshop 1: Setting up model railway - Challenge Problems: 3
Workshop 1: Setting up model railway - Challenge Problems: 2
Workshop 1: Setting up model railway - Challenge Problems: 1
Workshop 1: Setting up model railway - To do: 3
Rather than get Ruby on Rails running manually, you use the pre-packaged solutions. These include everything in one bundle: Web server, database, Ruby, Rails, the works.
a. For OS X, there's Locomotive.
b. For Windows, there's Instant Rails.
Workshop 1: Setting up model railway - To do: 2
Install Ruby on Rails on your computer by using the material and downloads from http://www.rubyonrails.org/
Workshop 1: Setting up model railway - To do: 1
Download iTunes from http://www.apple.com/itunes/download/ and subscribe to the “Leraning Rails” Podcasts from http://www.buildingwebapps.com/podcasts