Update transactions_controller.rb