I am having a Rails app for personal use and it uses Devise for authentication. I want there is only one user for my app. In other words, how do I disable registration in Devise after there is already 1 user registered ?
I am thinking about creating a custom method in controller. But is there any good way to do this ?
You want to remove the
:registerableoption in the model. Then create your single account in yourseed.rband then just seed your app. No need to complicate things just for your own use.