flattened routes, lots of paths and arg changes
This commit is contained in:
@ -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
|
17
app/helpers/merged/sections_helper.rb
Normal file
17
app/helpers/merged/sections_helper.rb
Normal 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
|
Reference in New Issue
Block a user