Ruby on Rails Monday, July 17, 2017

What operating system are you using?

Can you download the bashrail project to your PC and follow the instructions in the README.md. 

I wonder if you can run it as it is and see if it generates a rails app you can run. Then we can break it down into smaller pieces and try to understand what it is doing.


On Monday, July 17, 2017 at 7:38:30 PM UTC-4, babacar thiam wrote:
i want to use your script to test how implement robe based access control .
I hav a problems to import this or to add some file  in my projet.
I can't see the views who create user our assign a role to a user its my matter.
help need if i could have our contact to communicate fastly.
need u david Dleba 

Le lundi 17 juillet 2017 18:46:21 UTC-4, babacar thiam a écrit :
i look our script AND I COME WITH U IF I HAVE NEW
Le vendredi 14 juillet 2017 06:44:52 UTC-4, David Gleba a écrit :
I use devise and cancancan for login and roles.

In my little rails app generator project: https://github.com/dgleba/bashrail  there are scripts for this. Even if you don't use the scripts, they document exactly how to implement it in that case.

look at:  

When I am learning something like this I strip the scripts down to just what is needed to create an app with the feature I am studing.

This app, https://github.com/dgleba/brail351d, was generated by bashrail and has fully functional roles like mention in your question.

David


On Thursday, July 13, 2017 at 4:43:41 PM UTC-4, babacar thiam wrote:
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 affect a role to a user

--
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/7ba57c2b-750b-450e-8393-11158cc00ba2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment