Module: ControllerSpecificAssetsHelpers
- Defined in:
- lib/controller_specific_assets/helpers.rb
Instance Method Summary collapse
- #controller_javascript_tag ⇒ Object
- #controller_javascript_url ⇒ Object
- #controller_stylesheet_tag ⇒ Object
- #controller_stylesheet_url ⇒ Object
Instance Method Details
#controller_javascript_tag ⇒ Object
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_url ⇒ Object
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_tag ⇒ Object
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_url ⇒ Object
15 16 17 |
# File 'lib/controller_specific_assets/helpers.rb', line 15 def controller_stylesheet_url generate_asset_path("controller_#{params[:controller]}", 'css') end |