Quantcast
Channel: undefined method error for Hash when using select_tag with options_from_collection_for_select - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by fish for undefined method error for Hash when using select_tag with...

fixed the problem using options_for_select: <%= select_tag "All Music, options_for_select(name_object[:albums_sold].collect {|item| [item[:name], item[:id]]}) %>

View Article



undefined method error for Hash when using select_tag with...

I have the following array:[{:gig_id=>"1234BN-92846", :albums_sold=> [{:id=>"all-music", :name=>"All Music"}, {:id=>"presto", :name=>"Presto"}, {:id=>"hello", :name=>"Hello"}],...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images