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/.

--~--~---------~--~----~------------~-------~--~----~
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 from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to