RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: soffes
Site: http://samsoff.es
In Rails 4, this:
Product.update_all({discontinued: true}, {id: params[:product_ids]})
should be:
Product.where(id: params[:product_ids]).update_all(discontinued: true)
In Rails 4, this:
should be: