-
Notifications
You must be signed in to change notification settings - Fork 164
Array of possible values for a key. #167
Comments
Of course it's possible but you pass params in the wrong order. The right order should be |
Thank You! I have submitted a pull request. To document such feature. It's Issue #169. |
Is this still working? Tried it just recently with Rails 4.1 and it seems not to be working anymore. :( |
Stumbled across this too. Tested with Rails 4.2.0.beta2 and this does not work?
As this use case is not documented, it might be reasonable this does not work. But this might be a nice feature to implement, then :-) |
Did this ever get resolved in rails 4? Looking to filter role values on signup with devise and this looked like the only solution. |
@gotjosh found this because I was following a similar approach. If you're going to use those params to create a user it seems like doing the validation in the model is the way to go: http://stackoverflow.com/questions/16818117/rails-where-to-add-validation-code-controller-or-model |
Is it possible to pass an Array of values for a given key? I'm wondering if this should be something within the scope of strong params or if it belongs outside of this.
Something like
The text was updated successfully, but these errors were encountered: