Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

HanyMoh's Profile

GitHub User: HanyMoh

Comments by

Avatar

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? })