Hi
I have this kind of problem. I have table called item and there is
column called priority. So i have to do select tag for priority.
it gives an error
undefined method `stringify_keys’ for [1, 2, 3, 4, 5]:Array
Any ideas how to solve that ?
Hi
I have this kind of problem. I have table called item and there is
column called priority. So i have to do select tag for priority.
it gives an error
undefined method `stringify_keys’ for [1, 2, 3, 4, 5]:Array
Any ideas how to solve that ?
as you use it, you’re most likely confusing select and select_tag
to make the options from an array use
options_from_collection_for_select
you’ll find the details here:
Thanks.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs