Method: Cms::CommonHelper#cms_ajax_update_form
- Defined in:
- app/helpers/cms/common_helper.rb
#cms_ajax_update_form(page, object, path) ⇒ Object
28 29 30 31 32 33 34 |
# File 'app/helpers/cms/common_helper.rb', line 28 def cms_ajax_update_form(page, object, path) if object.errors.empty? page << else page.replace_html 'content', :file => "cms/#{path}/edit.html.erb" end end |