[Rails] RBAC_CANCAN

2017-07-13 Thread babacar thiam
Hello guys i want to implement rbac autorisation for a rails app. i use devise to generate user and i have a product controllers. am a beginners at rails and i want to use: user role show admin role edit speruser role delete I don't know how to implement this i use cancan and i have a problem to

[Rails] Re: How to trace a html button non-event? (Rails Authorization With Pundit)

2017-07-13 Thread jim
Hey Ralph, Happy to help! The readme is a great resource: https://github.com/turbolinks/turbolinks Jim On Friday, July 7, 2017 at 3:22:48 PM UTC-4, Ralph Shnelvar wrote: > > May all the gods of all the religions bless you, your house, your family, > your extended family, and your friends with

[Rails] Re: Prime user table for the first user

2017-07-13 Thread Matt Jones
On Tuesday, 11 July 2017 09:33:05 UTC-4, Ralph Shnelvar wrote: > > Let's say I expect to have a billion users in my Postgres users table. > > I want to make sure the first user gets to set it's role attribute to enum > :admin as the default when the record is created and all other users are > e