There are different ways to load particular file in rails application environment if the required file exists. 1. Using RAILS_ROOT if File.exists?(file=File.join(RAILS_ROOT,'config', 'initializers', 'smtp_gmail.rb')) require file end 2. Using Rails.root & join require Rails.root.join('config', 'initializers', 'smtp_gmail.rb') 3. Using Rails.root, join & exists? method. if File.exists?(file = Rails.root.join('config', 'initializers','smtp_gmail.rb')) require file end 4. Using File and … Continue reading require file in rails environment
Author: sandipransing
alternative for tortoise svn on ubuntu
The Tortoise svn client on windows is one of my favorite svn client.I am working on ubuntu karmic koala from last one year.There are kdesvn. smartsvn svn clients available on ubuntu but stilltime haven't found any svn client as good as tortoise svn on windows.Is there any alternative ??? Can tortoise svn client installation possibleusing … Continue reading alternative for tortoise svn on ubuntu
blogger tips
Change default favicon on bloggerGo to the layout click on Edit HTML linkInsert following link code inside head tag<link href='IMAGE_ICON_LINK' rel='icon' type='image/x-icon'/>Replace IMAGE_ICON_LINK url with your icon file url on webUse Dynamic Drive- FavIcon Generator online tool to easily create a favorites icon (favicon) for your site
