> You should put it under lib/contact.rb if you want to follow the
> general convention.
Really? It seems to me that Contact (ActiveRecord subclass or not) would
be a legitimate model object in a MVC system. I could see putting some
utility classes and stuff that doesn't really have a place in M
thanks
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe fro
You should put it under lib/contact.rb if you want to follow the
general convention.
On Tue, Oct 7, 2008 at 12:34 PM, Pepe Sanchez
<[EMAIL PROTECTED]> wrote:
>
> If I want to add my class where do I add it?
>
> as a module or as a controller?
>
> class Contact
> def initialize(name, email, messa
inside in your application under app/*model* folder. And if it is a module
then insert it inside the lib folder.
On Tue, Oct 7, 2008 at 5:04 PM, Pepe Sanchez <
[EMAIL PROTECTED]> wrote:
>
> If I want to add my class where do I add it?
>
> as a module or as a controller?
>
> class Contact
> def
4 matches
Mail list logo