Scaffold in Rails 2

Hi,
I am trying rails 2 and the dynamic scaffolding does not work. I
wonder if the syntax changed or what?

On Nov 4, 2007, at 4:04 PM, Arash wrote:

Hi,
I am trying rails 2 and the dynamic scaffolding does not work. I
wonder if the syntax changed or what?

It’s been pulled:

dev.rubyonrails.org/changeset/7429

You can still get the same behavior by using the scaffold generator
included with rails, only the ActionController#scaffold method has
been removed. If you wanted scaffolding for the Product model, try
running script/generate Product. If you run script/generate with no
options, it will give you a quick help with examples. This is better
anyway as it creates the controller with all of the relevant code
included allowing you to see and change it.

Hope this helps.

-Bill

William P. wrote:

You can still get the same behavior by using the scaffold generator
included with rails, only the ActionController#scaffold method has
been removed. If you wanted scaffolding for the Product model, try
running script/generate Product. If you run script/generate with no
options, it will give you a quick help with examples. This is better
anyway as it creates the controller with all of the relevant code
included allowing you to see and change it.

Hope this helps.

-Bill

As far as i can tell, scaffold hasn’t been removed as such - instead its
functionalty has been replaced with that of the old scaffold_resource,
which is used to make a RESTful scaffold. In other words, the scaffold
has been changed to be RESTful by default. This is going to break a lot
of tutorials i think. Bill, have you experienced otherwise?

Hi Arash

IMHO, I think you would be better off looking at Active Scaffold.

CCH

Max W. wrote:

William P. wrote:

You can still get the same behavior by using the scaffold generator
included with rails, only the ActionController#scaffold method has
been removed. If you wanted scaffolding for the Product model, try
running script/generate Product. If you run script/generate with no
options, it will give you a quick help with examples. This is better
anyway as it creates the controller with all of the relevant code
included allowing you to see and change it.

Hope this helps.

-Bill

As far as i can tell, scaffold hasn’t been removed as such - instead its
functionalty has been replaced with that of the old scaffold_resource,
which is used to make a RESTful scaffold. In other words, the scaffold
has been changed to be RESTful by default. This is going to break a lot
of tutorials i think. Bill, have you experienced otherwise?

I beg your pardon, Steve, dynamic scaffolding has been removed but the
non-dynamic, generated scaffolding has merely been changed to the
restful version.