Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

About this user

Stephane BRUN www.sbnet.fr

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

using Rails env in a ruby script

   1  
   2  RAILS_ENV = ARGV[0] || 'development'
   3  require File.dirname(__FILE__) + '/../config/environment'
« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS