Displaying 1 result from an estimated 1 matches for "controller_name_action_name".
2006 Jan 03
1
RequireResourceHelper for JS and CSS
...' javascript and cascading
stylesheet dependencies inside your views or controllers. By
''convention'', the code will automatically include any javascript or
CSS files whose name matches the current controller''s name. In
addition, any file named like ''controller_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'...