Rails engine containing Adam Schwartz's javascript logging library https://github.com/adamschwartz/log.
This gem just saves you from having to locate and copy the javascript into place.
- Safely call
log
(instead ofconsole.log
) in any browser. - Use markdown syntax for quick formatting:
- italic —
log('this is *italic*')
- bold —
log('this word _bold_')
code
—log('this word `code`')
- italic —
- Use a custom syntax to style text however you want:
log('this is [c="color: red"]red[c]')
.
Add this line to your application's Gemfile:
gem 'rails_javascript_log'
And then execute:
$ bundle
Add this line to your app/assets/javascripts/application.js
:
//= require rails_javascript_log
- 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