def items
@products = ShopifyAPI::Product.find(:all)
@products.each do |a|
@shop = Product.new(:title => a.title , :id => (
a.id), :product_type => a.product_type)
@shop.save
end
@shop_items =Product.find(:all)
redirect_to :action => "display_items"
end
but when i look at the id's, they are null. What am i doing wrong? thanks.