When I run mix routes.phx
I get the following route:
web_path PUT /web_items WebApp.WebController :set_active
How do I set more than one action, i.e. along with :set_active
also :set_inactive
etc?
When I run mix routes.phx
I get the following route:
web_path PUT /web_items WebApp.WebController :set_active
How do I set more than one action, i.e. along with :set_active
also :set_inactive
etc?
How would the router decide which path to pick?
Your question immediately helped me find the answer, thank you.