2020-12-09から1日間の記事一覧

ActiveModel::ForbiddenAttributesError

ActiveModel::ForbiddenAttributesError in PurchasesController#create ActiveModel::ForbiddenAttributesError Extracted source (around line #9): 7 8 9 10 11 12 def create @item = Item.find(params[:item_id]) Purchase.create(purchase_params) Use…