Answer the question
In order to leave comments, you need to log in
How to properly organize controller inheritance in Ruby on Rails?
I met in some projects on Rails the inheritance of the standard CRUD described in ApplicationController, now the scaffold generator does it too. Surface googling did not give a concrete result. Actually incomprehensible questions for me: how the resource, routing and choice of views are determined, for different resources. I don’t expect detailed explanations, but if anyone has it at hand, throw a link to the explanation and implementation, it’s possible in English. Thanks in advance.
Answer the question
In order to leave comments, you need to log in
https://github.com/activeadmin/inherited_resources or similar
guides.rubyonrails.org/routing.html Everything
seems to be very clear.
If you have questions, please specify what exactly is not clear.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question