2007年9月23日 星期日

Ruby on Rails with Active Scaffold plugin


It's fun to make a good looking GUI for Scaffold plugin in Rails.

http://activescaffold.com/
is the official website for activescaffold. Activescaffold is a plug-in, not a generator.

The concept of Scaffold is a code generator to generate viewers for you.
But the plug-in is not, it is called by "active_scaffold" command


class UsersController < ApplicationController
active_scaffold :user
end

is the way to generate users viewer pages





http://www.ibm.com/developerworks/linux/library/l-activescaffold/?S_TACT=105AGX59&S_CMP=GR&ca=dgr-lnxw05RoRActiveScaffold
This paper from IBM is a good starting spot to learn more about it.


This examples source code change css file for better GUI looking as follows:

沒有留言: