
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
sprockets_helper_rails3
Advanced tools
= sprockets_helper
Sprocket is great for Rails 3.1 However, if you are still using Rails 3.0 it is suprisingly inconvenient to attach file fingerprint to asset files such as
This gem attempt to make this task a little easier
== Installation
In Rails 3, add this to your Gemfile and run the +bundle+ command.
gem "cancan"
== Usage
Continue using JavaScript and CSS helpers as you normally would. sprockets_helper will determine if the asset is managed by sprockets and if it is appropriate inclusion will be generated with fingerprint information.
If you have application.js managed by Sprockets, you can use any of the following to generate correct HTML code that will have asset file with fingerprint
javascript_include_tag("application") javascript_include_tag("/assets/application") javascript_include_tag("/assets/application.js") stylesheet_link_tag("application.css") stylesheet_link_tag("/assets/application.css", :media=>:all)
== Contributing to sprockets_helper
== Copyright
Copyright (c) 2011 Ilya Katz. See LICENSE.txt for further details.
FAQs
Unknown package
We found that sprockets_helper_rails3 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.