79198317

Date: 2024-11-17 22:59:40
Score: 0.5
Natty:
Report link

In my situation, my ID parameter (to_param) was named slug rather than id, which caused the authorization not to work as expected. However, the source code stated that you specify an id_param: for these situations.

authorize_resource id_param: :slug

This change resolved my issue.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Hugo Sequeira