Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 653 Bytes

README.md

File metadata and controls

38 lines (26 loc) · 653 Bytes

inspectbang

Easy peasy "puts" style debugging in your browser, for Rails and Sinatra.

Installation

Add inspectbang to your Gemfile and run bundle:

group :development do
  gem 'inspectbang'
end

Example usage

Use the Object#inspect! method to output an HTML safe representation of the object in your browser. For example, you could inspect form data posted to your Rails application like this:

class SomeController < ApplicationController
  def some_form_action
    params.inspect!
  end
end

Or you could inspect the request in a Sinatra application like this:

get '/' do
  request.inspect!
end