Reputation: 11336
I have a form with this
check_box_tag "upgrade[#{user.id}]"
On next page, If i do
params[:upgrade]
I get 161 as value, but I would like only the id which is 16.
How can I separate only to get the first value?
When I do debug params[:upgrade] I get:
--- !map:ActiveSupport::HashWithIndifferentAccess
"16": "1"
Thank you!
Upvotes: 0
Views: 387