Quick Howto on Accessing Rails Properties

| Comments

When you create a new Rails app the default static page (public/index.html) page shows a lot of details about the app. Here’s a quick how-to show these details (the idea is to probably show these on a /ping route (or a debug parameter on any page maybe) – so you can quickly monitor your app – it’s state, active_record state etc.).

Rails 3: browse the source-code at railties/lib/rails/info.rb

Or see:

Rails 2: browse the source-code at railties/builtin/rails_info/rails/info.rb

Or see:

Till the next time…