Scaffolding

Hello everyone,

Does scaffold still work in the new rails 2.0?

Thank you,

I read that it is not. Is there any alternative (another command) to
it? Or do you just have to type it out?

Hi,

On Sep 2, 2008, at 7:07 PM, Mr. Watson wrote:

I read that it is not. Is there any alternative (another command) to
it? Or do you just have to type it out?

On Sep 2, 12:04 pm, “Mr. Watson” [email protected] wrote:

Hello everyone,

Does scaffold still work in the new rails 2.0?

Thank you,

Scaffolding still works. The only (albeit somewhat largish) change is
that the “new” scaffolding now generates RESTful controllers. If you
want old-style controllers (or if you need to augment the generated
controllers with yet more actions), you have to code it yourself.

Regards
Martin

The other big change in 2 is that you need to type out name:datatype
pairs on the call to generate, like so:

script/generate scaffold Product name:string available_at:date
vendor:string description:text

HTH,

-Roy

Martin E. pisze:

Or use plugin ! :slight_smile:

One more difference is that you can create scaffolds through script/
generate but you cannot call a scaffold from the controller like you
used to be able to do.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs