Frederick Cheung wrote:> On 15 Sep 2008, at 14:58, Palani Kumar wrote:
>
>>
>> Hi,
>> Can any one please tell me the difference between require statement
>> and include statement in Rails application...please
>
> They''re basically completely different. require means ''go
and load
> this file''. include means ''include this module in the
current module/
> class/whatever''. For example in the context of a class this will
add
> the constants and methods from the module to the class in question.
>
> Fred
Thank you so much Fred 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---