When making a HEAD request to a view that accesses an exposed resource, Decent Exposure (at least with the Strong Parameters strategy) attempts to assign parameters. In our particular case, a HEAD request to the /sessions/new route, which exposes a UserSession object results in a ActionController::ParameterMissing: param is missing or the value is empty: user_session error.
When making a HEAD request to a view that accesses an exposed resource, Decent Exposure (at least with the Strong Parameters strategy) attempts to assign parameters. In our particular case, a HEAD request to the /sessions/new route, which exposes a UserSession object results in a
ActionController::ParameterMissing: param is missing or the value is empty: user_session
error.The exposure in question looks like:
The attribute method it is using looks like:
And the associated route: