Sorry if this has been asked before; it seems like a simple problem.
I have a controller called ItemController which displays information
about specific items to a user on various pages. The routing looks like
“items/:item/:action”. Is there any way to automatically look up the
:item in the items table (it’s just an ID).
Sorry if this has been asked before; it seems like a simple problem.
I have a controller called ItemController which displays information
about specific items to a user on various pages. The routing looks like
“items/:item/:action”. Is there any way to automatically look up the
:item in the items table (it’s just an ID).