Module: JqajaxCore2::ApplicationControllerExt
- Defined in:
- lib/jqajax_core2/application_controller_ext.rb
Instance Method Summary collapse
- #ajax_layout(layout_name = "info_overlay") ⇒ Object
- #ajax_text(text) ⇒ Object
- #render_blank_ajax ⇒ Object
Instance Method Details
#ajax_layout(layout_name = "info_overlay") ⇒ Object
8 9 10 |
# File 'lib/jqajax_core2/application_controller_ext.rb', line 8 def ajax_layout(layout_name="info_overlay") render :layout => layout_name if request.xhr? end |
#ajax_text(text) ⇒ Object
12 13 14 |
# File 'lib/jqajax_core2/application_controller_ext.rb', line 12 def ajax_text(text) render :text => text.html_safe, :status => 200, :content_type => "text/html" end |
#render_blank_ajax ⇒ Object
4 5 6 |
# File 'lib/jqajax_core2/application_controller_ext.rb', line 4 def render_blank_ajax render :text => nil, :status => 200, :content_type => "text/html" end |