phoenix framework - Can't put my Error template outside the error folder -
i created standard not_found page working ok long have inside "web/templates/error" folder (not_found.html.eex). i'm using (in error_view.ex):
def render("404.html", _assigns) render("not_found.html", %{}) end when try move folder (in particular case standard "web/templates/page" folder) "server internal error" message suppose appear because no render clause matches or no template found. template there , i've tried different folders. i'm using render function in error_view.ex:
def render("404.html", _assigns) render("myproject.pageview", "not_found.html", %{}) end shouldn't work?
the render/3 function takes 3 arguments. first argument should module call render on:
def render("404.html", _assigns) render(myproject.pageview, "not_found.html", %{}) end you have provided string "myproject.pageview" instead of module myproject.pageview.
Comments
Post a Comment