Hi, I have created a phx.gen.html resource and want to use Live View only on show.html.leex page.
resources "/websites", WebsiteController, except [:show]
live "/websites/:id", WebsiteLive
where in Live
def render(assigns) do
render WebsiteView, "show.html", assigns
end
Everything in websites’s show pages work perfectly, but as I cut out the :show
option in resources "/websites"
the compiler gives me an error that no action :show for AppWeb.Router.Helpers.website_path/3
. So my question is how to define that the show option should be sought at the Live?
Best Regards