This content has been automatically translated from Ukrainian.
Vanilla Rails approach is the development approach in Rails when you're trying to use only basic Rails capabilities without additional gems or libraries to solve problems.
In other words: you work with what Rails provides "out of the box" - ActiveRecord, ActionController, ActionView, ActionText, ActiveStorage, ActiveJob, etc., instead of connecting third-party solutions for each task.
Pros of Vanilla Rails approach:
- Fewer dependencies - it is easier to maintain and update the project.
- Better understanding of how Rails works "under the hood".
- Less likely to run into gem conflicts or unknown bugs from third-party libraries.
Cons:
- It may take more time to implement certain features that are already ready in gems.
- Some complex functions will have to be written by yourself, and not used ready-made solutions.
Example: Instead of using mobility or globalize gems for translations, you can make a sub-zode in Vanilla Rails your/concern module for translating attributes, using only ActiveRecord and ActionText.
This post doesn't have any additions from the author yet.