All threads / Adding a Admin Interface to devise

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Adding a Admin Interface to devise

Sascha M. asked in Gems / Libraries

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 :(

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 33,665+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.