Update registrations_controller.rb

modify registration controller.