disabling Devise registration for production environment only

前端 未结 4 454
南旧
南旧 2020-12-22 16:16

I am launching a beta site with a select group of users. I want to disable registration in the production environment only, and only for a short period of time (i.e. I don\'

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-22 16:58

    Only remove :registerable will not solve the problem. If you have some routes in your view you will get an error:

    undefined local variable or method 'edit_user_registration_path'

    Take care of this.

提交回复
热议问题