Module: JqajaxViewHelper

Defined in:
app/helpers/jqajax_view_helper.rb

Instance Method Summary collapse

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_flashObject



8
9
10
# File 'app/helpers/jqajax_view_helper.rb', line 8

def include_jqajax_flash
  render :partial => "/jqajax/flash"
end

#include_jqajax_overlayObject



4
5
6
# File 'app/helpers/jqajax_view_helper.rb', line 4

def include_jqajax_overlay
  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(options = {}, &block)
  options[:draggable] = JqajaxCore2::Config.modal[:draggable]
  render "/jqajax/modal", :options => options, :content => capture(&block)
end