Where is the recommended library location in Rails 3? Is it as simple as "lib"?
I'm not sure, because "lib" looks more like the rest of Rails 2, especially considering that it no longer automatically loads (and there seemed to be a lot about it).
Initializers are more for (obviously) initialization tasks such as overrides.
In particular, I have a small module for processing attachments (the portfolio does not fit here), which is too large and clear to include in my model, but not general or worth enough to be implemented as a gem.
In terms of functionality, he lives somewhere in between the model, view and controller. This makes it look like an assistant, but in Rails, helpers are for AFAIK views.
Should I just put it in 'lib' and load it in application.rb? Or maybe I could create my own form designer to handle the presentation (or both).
I know how to make it work, but I hope to learn something new. :)
source
share