开发者

Why do I see generators for frameworks I have removed from a Rails 3 project?

开发者 https://www.devze.com 2023-01-28 05:49 出处:网络
When I comment out the lines that require the Active Record and Test Unit railties in config/application.rb and do a rails generate in the project root folder, I still see tasks for the above framewor

When I comment out the lines that require the Active Record and Test Unit railties in config/application.rb and do a rails generate in the project root folder, I still see tasks for the above frameworks in the list of generators.

% rails generate

...
ActiveRecord:
  active_record:migration
  active_record:model
...

Is this expected behavior? If not, what do I do to remo开发者_开发技巧ve these from the list of available generators?

It doesn't make or break anything, but it's annoying!


Are the gems still in your Gemfile? That's the likely candidate.

0

精彩评论

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

关注公众号