Skip to content

Instantly share code, notes, and snippets.

@marshluca
Created August 12, 2010 01:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save marshluca/520161 to your computer and use it in GitHub Desktop.
Save marshluca/520161 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