Apr 24, 2008

Dynamic Scaffolding on Rails 2.0

A sample code of dynamic scaffolding.

class SampleController < ApplicationController
scaffold :person
end


Dynamic scaffolding is removed in Raisl 2.0.
You need to install as a plugin.


% script/plugin install scaffolding
% script/plugin install http://tools.assembla.com/svn/breakout/breakout/vendor/plugins/classic_pagination/
% script/plugin install http://tools.assembla.com/svn/breakout/breakout/vendor/plugins/will_paginate/


You can use "script/generate scaffold" without the plugin.

No comments: