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"
精彩评论