Adjusting the product controller create and update methods to cooperate with Rails 4