I just have a question about shared model methods. I have a method that
will be used for quite a few models in my application (once I've cleaned
it up a bit). Where can I place shared model methods? I know that
controllers can use helpers or even the application_controller. But,
what do models use for a shared mechanism? Is it config/initialize?
Yes, just use Ruby modules.
And in your model,
class MyModel < ActiveRecord::Base
Does this help?
Rails for Everyone: Oct 24, 2009 in Chicago: