[Rails] Re: Where do I add my class in RoR

2008-10-08 Thread Robert Walker
> 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

[Rails] Re: Where do I add my class in RoR

2008-10-07 Thread Pepe Sanchez
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

[Rails] Re: Where do I add my class in RoR

2008-10-07 Thread Pratik
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

[Rails] Re: Where do I add my class in RoR

2008-10-07 Thread Abhishek shukla
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