What a good place for modules in a rail project

I am adding some non-trivial functions in my rails application and should be in the module, and not in one of the automatically generated models. I would like some advice on where the file containing the module should go (currently I have added the "code" directory at the same level as the "models" and "views" - but I do not know that this is a strong choice )

+5
source share
2 answers

Most people add this type of code to lib

+8
source

/, helper. , lib .. , , plugin, .

+3

All Articles