-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unpermitted parameter: :id #3154
Comments
I ran across this issue for id and a few other params. The following code in the configure_blacklight do |config|
###############################################
## Permit additional params for blacklight ##
###############################################
config.search_state_fields += [ :id ]
end |
@JeremyDuncan id is not part of the search state. The search state is the parameters that define which search and filters you have currently applied. |
So you tried it and it did not resolve your issue? |
There isn't much of an issue here. It's warning, and I think it can safely be ignored. |
So you tried it and it did not resolve your warning? |
What version of Rails are you running on? I'm unable to duplicate this on the main branch with Rails 8.0.1
|
Initially I was getting |
@JeremyDuncan Yes, that will cause the warning to disappear, but it may have unintended consequences as you've added parameters to the search state that do not belong in it. |
This seems to just be a warning, but it's in red and so a bit disconcerting.
The text was updated successfully, but these errors were encountered: