A
A
Anton2016-07-27 17:01:29
Ruby on Rails
Anton, 2016-07-27 17:01:29

Where to place classes in a Rails project?

I want to write a class with methods for further use in actions, helpers, etc.
Where should these classes be placed in a Rails project?

best = Best.new
best.method

PS The question may be moronic, but restrain yourself. Just write the directory please :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene Burmakin, 2016-07-27
@hummingbird

app/controllers/concerns, google for one thing about what concern is (in short: just modules)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question