Skip to content

Instantly share code, notes, and snippets.

@lgmkr
Forked from marshluca/ruby_constant.rb
Created September 1, 2011 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgmkr/1186008 to your computer and use it in GitHub Desktop.
Save lgmkr/1186008 to your computer and use it in GitHub Desktop.
constant in Rails
Loading development environment (Rails 2.3.8)
>> Rails.env
=> "development"
>> RAILS_ENV
=> "development"
>> RUBY_VERSION
=> "1.8.7"
>> Rails.version
=> "2.3.8"
>> Rails.root
=> #<Pathname:/home/ubuntu/todo>
>> RAILS_ROOT
=> "/home/ubuntu/todo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment