An open API service indexing awesome lists of open source software.

https://github.com/mnutt/action_assets_helper

Put action-specific javascript and stylesheet link tags in the views, and render them in application.html.erb
https://github.com/mnutt/action_assets_helper

Last synced: about 1 year ago
JSON representation

Put action-specific javascript and stylesheet link tags in the views, and render them in application.html.erb

Awesome Lists containing this project

README

          

ActionAssetsHelper
==================

Convenient helper plugin to add javascripts and stylesheets via individual
views, and have them appear in the document head.

Example
=======

# app/views/posts.html.erb:

<% javascript_include 'post_show' -%>
<% stylesheet_link 'posts' -%>

# app/views/layouts/application.html.erb:


...
<%= javascript_include_actions -%>
<%= stylesheet_link_actions -%>

This specifies action-specific javascript and stylesheet in the view, while the
tags are rendered in the layout.

Copyright (c) 2009 Michael Nutt and Justin Camerer, released under the MIT license