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, message) > @name = name > @email= email > @message= message > end > > def name(name) > @name = name > end > > def email(email) > @email= email > > end > > def message(message) > @message= message > end > > end > -- > Posted via http://www.ruby-forum.com/. > > > > -- Cheers! - Pratik http://m.onkey.org --~--~---------~--~----~------------~-------~--~----~ 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 [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-talk?hl=en -~----------~----~----~----~------~----~------~--~---

