rails create方法ActiveModel::ForbiddenAttribute的问题
def create @ad = Ad.new(ad_params) @ad.save end private def ad_params params.require(:ad).permit(:name, :description, :price, :seller_id, :email, :img_url) end