flattened routes, lots of paths and arg changes

This commit is contained in:
2022-11-30 16:22:11 +02:00
parent 1d91ff2fc6
commit df5713e6fe
31 changed files with 121 additions and 104 deletions

View File

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

View File

@ -0,0 +1,17 @@
module Merged
module SectionsHelper
def section_form(options)
url = section_url( @section.id)
puts "URL #{url}"
form_tag( url , {method: :patch}) do
yield
end
end
def image_root
Image.image_root
end
end
end