Difference between "require VS include"

Hi,
Can any one please tell me the difference between require statement
and include statement in Rails application…please

On 15 Sep 2008, at 14:58, Palani K. 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

Frederick C. wrote:

On 15 Sep 2008, at 14:58, Palani K. 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