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 Articleundefined 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
More Pages to Explore .....