awesome_print right in your browser
Add this line to your application's Gemfile:
gem 'browser_print',
:git => 'git://github.com/nicck/browser_print.git',
:group => :development
Anywhere in your app you can use bp(object)
to print object inspect to the top of rendered HTML page.
Also you can use bpp
(browser print proxy) method to inspect object inside method chain.
@comments = user.articles.first.bpp.comments # inspect first user article
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
- show line of sources where
bpp
called above inspect - ability to user
user.articles.first.bpp(&:title).comments
for inspecting only title of article instead full article object - better CSS for browser_print pane