On 13 March 2010 10:01, kb <[email protected]> wrote: > Hi! > > I have something in my application which should be shown only if I am > in development environment. > > Is there a command or a global variable to determine the current > environment of the application?
You can use if Rails.env.development? Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

