給我的錯誤與此代碼未定義的方法`stringify_keys'假:FalseClass
module Spree::Admin::ProductsHelper
def stores_checkbox
capture do
Spree::Store.all.each do |store|
concat hidden_field_tag "product[store_ids][]", store.id, @product.stores.include?(store)
end
end
end
end
但它是確定與這一個....
module Spree::Admin::ProductsHelper
def stores_checkbox
capture do
Spree::Store.all.each do |store|
concat check_box_tag "product[store_ids][]", store.id, @product.stores.include?(store), :style => "display: none;"
end
end
end
end
什麼問題?