merb_inspector

A plugin for the Merb framework that provides “inspect” helper. Just inspect your objects! No longer need to prepare views, scaffold and pagination.

Setup

  1. load gem at the bottom of config/dependencies.rb

dependency "merb_inspector"
  1. include css and js in your view or layout files

<%= css_include_tag "merb_inspector.css" -%>
<%= js_include_tag  "jquery.js" -%>

Example

just inspect the object you want to know!

<%= inspect [1, :hello] %>
<%= inspect User.all(:limit=>10) %>
<%= inspect @item %>
...

Copyright © 2008 [email protected], released under the MIT license