RailsNme
Tuesday, February 22, 2011
How to find the rails environment
ruby-1.9.2-p0 :001 > Rails.env
=> "development"
ruby-1.9.2-p0 :002 > Rails.env.development?
=> true
Rails provides a
Rails
object with an
env
attribute and associated environment bollean methods.
No comments:
Post a Comment
Newer Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment