This content has been automatically translated from Ukrainian.
Vanilla Rails approach - is an approach to development in Rails where you try to use only the basic capabilities of Rails without additional gems or libraries to solve tasks.
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 - easier to maintain and update the project.
- Better understanding of how Rails works "under the hood".
- Less chance of running into gem conflicts or unknown bugs from third-party libraries.
Cons:
- It may take more time to implement certain features that are already available in gems.
- Some complex functions will have to be written yourself, rather than using ready-made solutions.
Example: Instead of using gems like mobility or globalize for translations, in Vanilla Rails you can create your own module/concern for translating attributes using only ActiveRecord and ActionText.
This post doesn't have any additions from the author yet.