Please suppose I have the following embedded routes in my router file :
`resources "/sections", SectionController do
resources "/subsections", SubsectionController do
resources "/categories", CategoryController do
resources "/subcategories", SubcategoryController
end
end
end
With this i’m ending up with path helper like “section_subsection_category_subcatgory_path”.
I searched a way to specify a short name by providing options to the resources macro, but it doesn’t help…
The options I found are :param, :as, :name but none of them can change the path helper.
For the moment I define my self functions with shorter name in specific view file, to call the long name path helpers from my templates.
What could be a better solution to this ? Or maybe is it possible in elixir to define alias on function name ?