An error occurred while saving the commentJames commented
Explaining with Pundit would be useful.
* Especially regarding namespaces.
* How do we scope index listings.
* Scoping Controller#index. As User manually types the url; account/products but they get an error because the policy_scope() doesn't let them have any results (order/paginate don't like nil). How can we show them an "access denied" (like a regular "#show" authorize @user) message rather than giving an error.
9 votesJames shared this idea ·