RubyGems Navigation menu

javascript_safe_logger 0.0.3

Rails 3.1 javascript asset for Paul Irish console.log wrapper

This gem makes a javascript log method available as a Rails 3.1 asset

Usage

in your javascript

log('inside coolFunc', this, arguments);
// or simple
log('hello world!');

and in coffeescript

log 'inside coolFunc', this, arguments
# or simple
log 'hello world!'

Install

  1. Update the Gemfile in your rails project, add the following line

    gem 'javascript_safe_logger'
    
  2. Update the /app/assets/javascript/application.js file

    A. Manually update the file, add this before other requires 
    
        //= require safe_logger
    
    B. Or use the generator to update the application.js file
    
        rails generate javascript_safe_logger
    

License

Paul Irish released the javascript code with the The Unlicense (aka: public domain), so this gem is also released with the same license.

Gemfile:
= 複製 已複製

安裝:
=

版本列表:

  1. 0.1.0 - May 31, 2013 (6.0 KB)
  2. 0.0.4 - February 07, 2012 (6.0 KB)
  3. 0.0.3 - June 25, 2011 (6.0 KB)
  4. 0.0.2 - June 25, 2011 (6.0 KB)
  5. 0.0.1 - June 25, 2011 (4.5 KB)

Runtime 相依性套件 (1):

rails ~> 3.1.0.rc

擁有者:

作者:

  • Jesse House

SHA 256 checksum:

58b90198b4d1738e998840510d1a2ba41013b7e3af72d8bbf013867f6c4b5957

總下載次數 22,684

這個版本 3,288

License:

Ruby 版本需求:

相關連結: