You could equally argue that observers should have their own directory as well.

-Jonathan.

On 8/29/06, Caio Chassot < [EMAIL PROTECTED]> wrote:


On 2006-08-28, at 14:36 , Jamis Buck wrote:
> court3nay wrote:
>> Any reason why ActionMailers go in Models rather than, say, Mailers?
>> (since they aren't really at the 'database' part of the app,
>> typically...)
>
> I think it's mostly because "mailers" isn't one of the directories
> that
> is looked at by default, but that's a sad excuse. I'd love to see
> mailers go in their own directory.

At the very least, if you want to stick to the MVC nomenclature, they
sound more like controllers. So they could go into the controllers
dir. I think just having the file called whatever_mailer, rather then
whatever_controller, would prevent rails from trying to load them as
actual controllers.

Having said that, having a mailers dir sounds like a better idea, so +1.

(and how about sweepers?)




--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to