B
B
Bogdan2017-07-25 11:02:08
Ruby on Rails
Bogdan, 2017-07-25 11:02:08

Rails including another file in application_controller.rb?

Hello. Tell me please. My application_controller.rb has already grown, I want to split it into several files and how to connect these files to it, so that these functions would then be available to all controllers? Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Demidenko, 2017-07-25
@Dem1

Use concerns
Example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question