Module: RailsJqueryBundle::JqueryJsHelper
- Includes:
- Constants::Jquery, Constants::Jquery::Ui
- Defined in:
- app/helpers/rails_jquery_bundle/jquery_js_helper.rb
Constant Summary
Constants included from Constants::Jquery::Ui
Constants::Jquery::Ui::JQUERY_UI_ALL_FILENAME, Constants::Jquery::Ui::JQUERY_UI_ALL_I18N_FILENAME, Constants::Jquery::Ui::JQUERY_UI_BASE, Constants::Jquery::Ui::JQUERY_UI_EFFECTS_FILE_PATTERN, Constants::Jquery::Ui::JQUERY_UI_EFFECTS_FILE_PATTERN_MIN, Constants::Jquery::Ui::JQUERY_UI_I18N_FILE_PATTERN, Constants::Jquery::Ui::JQUERY_UI_THEMES_BASE, Constants::Jquery::Ui::JQUERY_UI_UI_FILE_PATTERN, Constants::Jquery::Ui::JQUERY_UI_UI_FILE_PATTERN_MIN, Constants::Jquery::Ui::JQUERY_UI_VERSION, Constants::Jquery::Ui::STYLESHEETS_BASE, Constants::Jquery::Ui::STYLESHEET_FILNAME
Constants included from Constants::Jquery
Constants::Jquery::JQUERY_BASE, Constants::Jquery::JQUERY_FILENAME, Constants::Jquery::JQUERY_FILENAME_MIN, Constants::Jquery::JQUERY_VERSION, Constants::Jquery::PRODUCTION_SUB_FOLDER
Instance Method Summary collapse
-
#jquery_js_tag ⇒ String
Creates a includetag for only for jQuery: for production environment: * javascripts/jquery/JQUERY_VERSION/minified/jquery.js all other environments: * javascripts/jquery/JQUERY_VERSION/jquery.js.
-
#jquery_ui_js_tag(wanted_parts = :all) ⇒ String
Creates a includetag(s) for jQuery and jQuery-Ui: for production environment: * javascripts/jquery/ui/JQUERY_UI_VERSION/minified/*js all other environments: * javascripts/jquery/ui/JQUERY_UI_VERSION/*js jquery.ui.core.js is included in evry case.
Instance Method Details
#jquery_js_tag ⇒ String
Creates a includetag for only for jQuery: for production environment:
-
javascripts/jquery/JQUERY_VERSION/minified/jquery.js
all other environments:
-
javascripts/jquery/JQUERY_VERSION/jquery.js
23 24 25 |
# File 'app/helpers/rails_jquery_bundle/jquery_js_helper.rb', line 23 def jquery_js_tag javascript_include_tag([JQUERY_BASE,JQUERY_VERSION,production_folder, jquery_filename].compact.join('/')).html_safe end |
#jquery_ui_js_tag(wanted_parts = :all) ⇒ String
Creates a includetag(s) for jQuery and jQuery-Ui: for production environment:
-
javascripts/jquery/ui/JQUERY_UI_VERSION/minified/*js
all other environments:
-
javascripts/jquery/ui/JQUERY_UI_VERSION/*js
jquery.ui.core.js is included in evry case
45 46 47 48 49 50 51 |
# File 'app/helpers/rails_jquery_bundle/jquery_js_helper.rb', line 45 def jquery_ui_js_tag(wanted_parts=:all) [jquery_js_tag, (wanted_parts) ].flatten. join("\n"). html_safe end |