RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: HanyMoh
in Rails 4.2 this code gives me error undefined method `reject' for nil:NilClass
product.update_attributes!(params[:product_params].reject { |k,v| v.blank? })
in Rails 4.2 this code gives me error
undefined method `reject' for nil:NilClass
product.update_attributes!(params[:product_params].reject { |k,v| v.blank? })