On Jun 11, 3:07 pm, jclagache <[email protected]> wrote:
> I'm begining whith rails.
> In the rails directory structure, where is the nicest directory tu put
> my active record callback objects ?
> app/helpers ?
> app/models ?
> lib ?
I keep my observers in app/observers. Feels cleaner to me.
For it to work, add that directory to load path in environment.rb:
config.load_paths << "#{RAILS_ROOT}/app/observers"
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---