O
O
Oleg Kulakov2017-08-26 21:32:45
Ruby on Rails
Oleg Kulakov, 2017-08-26 21:32:45

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

2 answer(s)
A
Andrey Andreev, 2017-08-26
@Morphine43

https://github.com/activeadmin/inherited_resources or similar

D
Dmitri Sinitsa, 2017-08-26
@unabl4

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 question

Ask a Question

731 491 924 answers to any question