app/controllers/effective/pages_controller.rb in effective_pages-3.7.10 vs app/controllers/effective/pages_controller.rb in effective_pages-3.7.11

- old
+ new

@@ -30,10 +30,12 @@ end template = File.join(EffectivePages.pages_path, @page.template) layout = File.join(EffectivePages.layouts_path, @page.layout) - render(template, layout: layout, locals: { page: @page }) + respond_to do |format| + format.html { render(template, layout: layout, locals: { page: @page }) } + end end private def admin_edit?