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

Reply via email to