helper for forms, done fighting rails on namespacing
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user