问题
i'm currently buidling my own blog using rails 3. and use devise gem for authentication. the problem is , i want only one user out here --- the admin user, and prehibits others from signing up, how can I achive that?
回答1:
Is there any reason why you can not use Basic Http Authentication? IMHO devise seems to be an overkill for this usecase.
来源:https://stackoverflow.com/questions/3766601/rails-3-authentication