All original content is created in Ukrainian. Not all content has been translated yet. Some posts may only be available in Ukrainian.Learn more

What is Vanilla Rails approach?

Post cover: What is Vanilla Rails approach?
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.

What is memoization in Ruby?
30 Oct 10:17

What is memoization in Ruby?

Нотатки про Ruby та RoR
Нотатки про Ruby та RoR@kovbaska
is_a?, kind_of?, instance_of? — how does Ruby check object type?
30 Oct 19:55

is_a?, kind_of?, instance_of? — how does Ruby check object type?

Нотатки про Ruby та RoR
Нотатки про Ruby та RoR@kovbaska
&& vs and — difference in Ruby that can break your code
30 Oct 20:23

&& vs and — difference in Ruby that can break your code

Нотатки про Ruby та RoR
Нотатки про Ruby та RoR@kovbaska
The variables in Ruby are @, @@ and class instance variable
30 Oct 20:54

The variables in Ruby are @, @@ and class instance variable

Нотатки про Ruby та RoR
Нотатки про Ruby та RoR@kovbaska
The difference between blank?, present?, empty? but nil? in Ruby
30 Oct 21:06

The difference between blank?, present?, empty? but nil? in Ruby

Нотатки про Ruby та RoR
Нотатки про Ruby та RoR@kovbaska
What Middleware is in Ruby on Rails and when it is used
04 Nov 10:39

What Middleware is in Ruby on Rails and when it is used

Нотатки про Ruby та RoR
Нотатки про Ruby та RoR@kovbaska
What is Elasticsearch and how does it work?
22 Nov 12:35

What is Elasticsearch and how does it work?

Нотатки про Ruby та RoR
Нотатки про Ruby та RoR@kovbaska
What is a time-series database?
22 Nov 12:42

What is a time-series database?

Нотатки про Ruby та RoR
Нотатки про Ruby та RoR@kovbaska
22 Nov 12:49

What is VACUUM in PostgreSQL?

Нотатки про Ruby та RoR
Нотатки про Ruby та RoR@kovbaska
What is B-Tree (Balanced Tree)?
22 Nov 12:58

What is B-Tree (Balanced Tree)?

Нотатки про Ruby та RoR
Нотатки про Ruby та RoR@kovbaska