Scaffold Broken?

8 views
Skip to first unread message

beta geek

unread,
Nov 6, 2007, 6:00:04 AM11/6/07
to rubyonra...@googlegroups.com
Hi,

I'm running into some serious problems with the scaffold features in Rails 1.2.5

1) Dynamic scaffolding appears to have gone
    I get "undefined method `scaffold' for Product:Class" when trying to use it

2) script/generate scaffold is broken
    running 'script/generate scaffold Product' or 'script/generate scaffold_resource Product' just generates empty scaffold, no database introspection seems to happen so CRUD pages are just blank

Am I missing something here (i've missed a couple of point releases lately)? Will open a bug if this is confirmed as it's going to screw up anyone trying to follow any of the newbie rails tutorials and the ADRoR book

David

beta geek

unread,
Nov 6, 2007, 6:28:25 AM11/6/07
to rubyonra...@googlegroups.com
ignore my point 2, miskeyed the captilisation, but still would like to know the current state of scaffold and future plans for 2.0

James Brooks

unread,
Nov 6, 2007, 6:32:06 AM11/6/07
to rubyonra...@googlegroups.com
From memory, DHH said that scaffolding would be removed from Rails 2.0, I'm not sure if it'll still be available as a plugin. In all reality, while scaffolding 'looks' like a good feature, it's seldomly used in production (maybe for a quick CRUD mockup?).

Cheers,
  James

CCH

unread,
Nov 6, 2007, 6:58:09 AM11/6/07
to Ruby on Rails: Talk
Hi Beta Geek

James is right about the default scaffolding before Rails 2.0.

That said, you should take a serious look at ActiveScaffold, a plugin
that will definitely improve your productivity.

CCH
http://cch4rails.blogspot.com


On Nov 6, 7:32 pm, "James Brooks" <white...@gmail.com> wrote:
> From memory, DHH said that scaffolding would be removed from Rails 2.0, I'm
> not sure if it'll still be available as a plugin. In all reality, while
> scaffolding 'looks' like a good feature, it's seldomly used in production
> (maybe for a quick CRUD mockup?).
>
> Cheers,
> James
>

> On Nov 6, 2007 9:58 PM, beta geek <betag...@gmail.com> wrote:
>
>
>
> > ignore my point 2, miskeyed the captilisation, but still would like to

> > know the current state of scaffold and future plans for 2.0- Hide quoted text -
>
> - Show quoted text -

Reply all
Reply to author
Forward
0 new messages