Now I am new in ruby language. Currently learning ruby. I am expert coder in the PHP. Basically I am working in the CakePHP. CakePHP and Ruby directory structure approximately same. But I am confusing little bit in the Ruby Code.
In CakePHP while I am define any variable in bootstrap.php I am getting this variable across the site. 
Suppose I have a variable name $gallery_path = 'files/gallery/'; If I echo $gallery_path in controller, model and view. I am getting my gallery path.
But here in ruby I am unable to define any variable like php bootstrap.php Please suggest me.