我正在尝试为Ruby on Rails开发应用程序,但我的Orders_Controller不能正常工作,它显示为ActiveModel::ForbiddenAttributesError。我相信它一定和我的orders_controller有关系
def create
@order = Order.new(params[:order])
@order.add_line_items_from_cart(current_cart)发布于 2015-11-20 03:58:23
如果这对你没有帮助,请使用ActiveModel::ForbiddenAttributesError when creating new user。提供更多信息,包括Rails版本和发生此错误的行号。
https://stackoverflow.com/questions/33813156
复制相似问题