Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Trying to find a way to have to personally accept users signing up for website.

I can't really explain the question very well to search on Google so I am coming to you all.

I am working on a project that I want very small and exclusive so that when people signup they don't immediately get access to the site, I have to review the application, personally, and decide whether or not to allow them access to the content on the site.

is their a ruby gem or something that allows me personal access to this or is a lost cause?

Any and all help would be great.

1 Answer

Devise MAY cover this, or another gem, I'm not sure. But an alternative would be to have a 'access' boolean for Users, set to 'false' by default when a User is created, that an Admin can change to 'true'. You can then set access to content based on whether or not the User is logged-in and also has a 'true' access boolean. I did something similar and worked well - you can build an Admin page that lists all Users and a button to change their access permission.

You could also have a button to delete that User, also.

I really appreciate the help. That's awesome. As soon as treehouse makes that video(hint, hint) haha, I will be all over learning that. But seriously, thanks for reaching out, and I will get started on figuring that out right away.