Skip to main content

Adding a Admin Interface to devise

Gems / Libraries • Asked by Sascha M.

Hi there,

first of all: I'm pretty new to Rails, so please don't blame me if I ask a stupid question :)

I use devise + cancancan for authentication and authorization. The user model is already generated by devise (inluding the views). Now I want to disable public registrations. Only admins (cancancan role is admin) should be able to create and edit users (e.g. list of users with edit button). How would your approach look like? I'm totally lost with that :(


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 27,623+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.