search for: require_resource

Displaying 1 result from an estimated 1 matches for "require_resource".

2006 Jan 03
1
RequireResourceHelper for JS and CSS
...ller_name_action_name.css'' will also be included for specific actions (likewise for JS). It was inspired by a portion of code I saw from Demetrius Nunes. To use it, put the following in your application.rb: class ApplicationController < ActionController::Base helper ''require_resource'' end Then in my layout''s HTML "head" section: <%= stylesheet_auto_link_tags %> <%= javascript_auto_include_tags %> Supposing I am writing an action for WelcomeController called ''index.rhtml'', (and that each of the files actually exis...