helper for forms, done fighting rails on namespacing

This commit is contained in:
2022-11-27 21:03:49 +02:00
parent 6bb0b35d3f
commit 4814f53d1e
7 changed files with 23 additions and 7 deletions

View File

@ -1,2 +1,10 @@
module Cms::SectionHelper
def section_form(options)
url = cms_page_section_url( @page.id , @section.id)
puts "URL #{url}"
form_tag( url , {method: :patch}) do
yield
end
end
end