0.0
No commit activity in last 3 years
No release in over 3 years
Log rails variables to the browser console.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 0

Runtime

~> 4.1
 Project Readme

ConsoleLog

Log rails variables to the browser console.

Installation

Include console_log in your Gemfile, probably in your development group:

group :development do
  gem "console_log"
end

Usage

From anywhere in a controller, ActiveRecord::Base model, or view, the syntax is:

console_log message, ...

The console_log method accepts one or many arguments, appending each one to the console queue.

You must include the following in your layout file(s):

<%= console_log_javascript_tag %>

When the page renders, the queued messages/variables/objects will be logged to the browser console