简体   繁体   中英

Which gems can a Rails app survive without?

  • actionmailer
  • actionpack
  • activeresource
  • activesupport

I have a basic scaffolded CRUD app that uses ActiveRecord to connect to a SQLite database and I have frozen my Rails gems.

Which of these gems could I delete without affecting my app?

ActionMailer can go if you'll never use e-mail, and ActiveResource is just a more REST-ful API to Rails than ActiveRecord is. You'll need the rest:

  • ActionPack handles the split of web requests to controllers and views
  • ActiveSupport puts a lot of mixins and syntactic sugar from Ruby into Rails

But more importantly, why do you need to delete the gems? It's not like they take up a lot of space.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM