Skip to content

timcraft/inspectbang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages