Forum: Ruby on Rails Heroku Garden - reversing or changing a 'generate scaffold' command

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ec91eb8e29c7e1fef2278cbe1d2bec0a?d=identicon&s=25 Clive (Guest)
on 2009-04-12 15:40
(Received via mailing list)
In Heroku Garden, is there a way of reversing or changing a 'generate
scaffold' command?
I often find I need to make changes to the scaffolded application but
I do not know how to.

'script/destroy scaffold Modelname' from the console doesn't seem to
work.
For example, I generated a Product scaffold in Heroku Garden.
When I try to destroy it using the console, I get the following error:

script/destroy scaffold Product
SyntaxError: compile error
/home/heroku_rack/lib/init.rb:1: syntax error, unexpected tIDENTIFIER,
expecting kDO or '{' or '('
script/destroy scaffold Product
^

Does anyone have any ideas on this?
(I'm a Rails/OO newbie)?

Many thanks
This topic is locked and can not be replied to.