开发者

What is the equivalent of script/destroy scaffold User in Rails 3?

开发者 https://www.devze.com 2023-01-22 18:26 出处:网络
When I was using Rails 2, I did script/generate scaffold User to create the user model. Now I need to remove it, and I\'m using Rails 3. I tried rails destroy scaffold User and r开发者_JAVA百科ails de

When I was using Rails 2, I did script/generate scaffold User to create the user model. Now I need to remove it, and I'm using Rails 3. I tried rails destroy scaffold User and r开发者_JAVA百科ails destroy User, but these just created new rails projects named destroy. How do I do it? Thanks for reading.


Are you sure you are not running an older rails version at the time? Maybe forgot to switch to your Rails3 gemset with RVM?

It works fine here and this is the rails help output:

In addition to those, there are:
 application  Generate the Rails application code
 destroy      Undo code generated with "generate"
0

精彩评论

暂无评论...
验证码 换一张
取 消