I normally make everyone a user, and the assign an 'admin' role in the same way as any other permission.
I never really liked this functionality of devise,.
I normally make everyone a user, and the assign an 'admin' role in the same way as any other permission.
I agree, so then what do we need admin model for in light of roles
On Monday, February 20, 2017 at 12:06:09 PM UTC-5, fugee ohu wrote:i want one of my tables to belong to either admins or users because i'm under the impression they can't belong to both
can someone clarify please
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/c166e9bc-9a13-4bf9-a9db-651f6e5dd545%40googlegroups.com.
In short I would never use an 'admin' model there is simply no point for 99% of applications
If you have a robust permissions system, you can also hide or show fields based on those permissionsIn short I would never use an 'admin' model there is simply no point for 99% of applications