标签:cti style bsp for nat param rmi logs att
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
rails create方法ActiveModel::ForbiddenAttribute的问题
标签:cti style bsp for nat param rmi logs att
原文地址:http://www.cnblogs.com/stono/p/6720015.html