New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

scrolls_rails

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scrolls_rails

  • 0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

scrolls_rails

scrolls_rails is an extension to the Scrolls logging library that makes it easy to log user interface/Javascript events the same way that you log actions in your models and controllers.

For more information about Scrolls, visit its repository here.

Installation

Add this line to your application's Gemfile:

gem 'scrolls_rails'

Add scrolls_rails to your javascript manifest, normally application.js:

//= require scrolls_rails

And add scrolls_rails's routes to your routes file:

mount ScrollsRails::Engine => "/scrolls", :as => "scrolls_rails"

Usage

scrolls_rails uses the syntax you're already familiar with, to log events from Javascript:

Scrolls.log({fn: "items", at: "viewed_list"})

The output of which will be:

fn=items at=viewed_list

In addition, since scrolls_rails works with your existing Rails app, any Scrolls contexts set for your application will be set for your Javascript logs as well.

License

scrolls_rails is released under the {MIT License}[http://www.opensource.org/licenses/MIT].

FAQs

Package last updated on 28 Oct 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc