Workshop 6
May 24, 2009
To Do:
Developers may continue to build upon work with the OTBS using the topic reading to help with user registration and advanced login features from Hartl et al (2008).
- generate a controller and an action by adding a method(s) to a controller;
- create a view template for each action and to link to actions from views;
- use AJAX to improve the user experience;
Share your success by posting progress comments and links etc to the Developers sub-forum site that has been set up for the Red team.
—————————————————————————————-
While following and modifying guidelines from Hartl et al (2008) a simple user model is created. Functions like registering, login and logout are readily for use. Those functions make use of model, view and controller. In the meantime ajax function has not been implemented.
Since the version used by Hartl et al is not different from mine (I’m using InstantRails 2.0), some modification to the guidelines is needed. Some example as below:
1. There’s no need to manually add created_at and updated_at to tables.
2. Scaffolding command is “ruby script/generate scaffold ……” instead of “ruby script/generate scaffold_resource …….”