Module: JqajaxViewHelper
- Defined in:
- app/helpers/jqajax_view_helper.rb
Instance Method Summary collapse
- #include_jqajax_core(*elements) ⇒ Object
- #include_jqajax_flash ⇒ Object
- #include_jqajax_overlay ⇒ Object
- #jqajax_modal(options = {}, &block) ⇒ Object
Instance Method Details
#include_jqajax_core(*elements) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'app/helpers/jqajax_view_helper.rb', line 12 def include_jqajax_core(*elements) elements = %w(overlay flash) if elements.empty? elements.each do |e| concat(self.send("include_jqajax_#{e}")) end return nil end |
#include_jqajax_flash ⇒ Object
8 9 10 |
# File 'app/helpers/jqajax_view_helper.rb', line 8 def include_jqajax_flash render :partial => "/jqajax/flash" end |
#include_jqajax_overlay ⇒ Object
4 5 6 |
# File 'app/helpers/jqajax_view_helper.rb', line 4 def render :partial => "/jqajax/overlay" end |
#jqajax_modal(options = {}, &block) ⇒ Object
23 24 25 26 |
# File 'app/helpers/jqajax_view_helper.rb', line 23 def jqajax_modal( = {}, &block) [:draggable] = JqajaxCore2::Config.modal[:draggable] render "/jqajax/modal", :options => , :content => capture(&block) end |