Module: ControllerSpecificAssetsHelpers

Defined in:
lib/controller_specific_assets/helpers.rb

Instance Method Summary collapse

Instance Method Details

#controller_javascript_tagObject



3
4
5
# File 'lib/controller_specific_assets/helpers.rb', line 3

def controller_javascript_tag
  javascript_include_tag generate_asset_path("controller_#{params[:controller]}", 'js')
end

#controller_javascript_urlObject



11
12
13
# File 'lib/controller_specific_assets/helpers.rb', line 11

def controller_javascript_url
  generate_asset_path("controller_#{params[:controller]}", 'js')
end

#controller_stylesheet_tagObject



7
8
9
# File 'lib/controller_specific_assets/helpers.rb', line 7

def controller_stylesheet_tag
  stylesheet_link_tag generate_asset_path("controller_#{params[:controller]}", 'css')
end

#controller_stylesheet_urlObject



15
16
17
# File 'lib/controller_specific_assets/helpers.rb', line 15

def controller_stylesheet_url
  generate_asset_path("controller_#{params[:controller]}", 'css')
end