Re: [Rails] Re: RBAC_CANCAN

2017-07-17 Thread babacar thiam
I go to create a teste app using https://hibbard.eu/authentication-with-devise-and-cancancan-in-rails-4-2/ simple user project a

Re: [Rails] Re: RBAC_CANCAN

2017-07-17 Thread babacar thiam
yeah i see this moment i create a simple web app i use devise and cancancan but i cant creer a select form to insert role id in the database for using html files devise/registrations. In your github i dont undertand how to use its when i import then i have many thing aborted Le lundi 17 juillet

Re: [Rails] Re: RBAC_CANCAN

2017-07-17 Thread David Gleba
Also, my implementation was patterned after this article. https://hibbard.eu/authentication-with-devise-and-cancancan-in-rails-4-2/ Maybe that will help you also. Can you post specific error messages, screen shots, code, etc? I may be able to answer specifically. On Monday, July 17, 2017 at

Re: [Rails] Re: RBAC_CANCAN

2017-07-17 Thread d gleba
The role_id is a column in the users table. The role.rb model and the user.rb model are related. In user.rb the roles are processed. I find it is helpful to try to add the feature you want to a fresh plain test project. When you can add it to a test project, then try to add it to your project.

[Rails] Re: RBAC_CANCAN

2017-07-17 Thread babacar thiam
I use mac os x. I want to use your app to see specifically how use Rbac in a simple app. And in my app i don't undertand how to link user to a specifique role. in devise/ folder i can't see an in the form how to add role id and if i want to add user in the seed file i have a error. Le lundi 17 ju

[Rails] Re: RBAC_CANCAN

2017-07-17 Thread David Gleba
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

[Rails] Where does Devise validate authorization? How to use byebug?

2017-07-17 Thread Ralph Shnelvar
I have been trying to find where Devise makes the decision to allow a user to be authorized. I'm pretty sure (but not certain) this is where Devise ,creates authenticate_user!, user_signed_in?, current_user, and user_session . ~/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/devise-4.3.0/lib/de

[Rails] Re: [JOBS] Senior Software Engineer (San Jose, CA) - In the cannabis space

2017-07-17 Thread sadathiru
Hey Trae, Am interested for this position, I've 5+ years of ROR/UI development experience. Kindly let me know. On Tuesday, July 11, 2017 at 11:57:55 PM UTC+5:30, Trae Robrock wrote: > > I am looking for some great Senior Software Engineers to join our team. We > are a small 3 person product tea

[Rails] Re: RBAC_CANCAN

2017-07-17 Thread babacar thiam
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

[Rails] Re: RBAC_CANCAN

2017-07-17 Thread babacar thiam
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'

Re: [Rails] Best place to store secret keys in Rails

2017-07-17 Thread nynhex
Sure, why not. I store all my stuff in secrets.yml but best practice to not commit secrets.yml (or database.yml) to version control. > On Jul 17, 2017, at 2:26 PM, Ralph Shnelvar wrote: > > If my code will not be shared, and > > My Rails app is on my own server, then > > Does it make a diffe

Re: [Rails] Best place to store secret keys in Rails

2017-07-17 Thread Walter Lee Davis
> On Jul 17, 2017, at 3:26 PM, Ralph Shnelvar wrote: > > If my code will not be shared, and > > My Rails app is on my own server, then > > Does it make a difference if the secret keys are in environment variables or > ~/config/secrets.yml ? > > Ralph > Probably not. But if the configuratio

[Rails] Best place to store secret keys in Rails

2017-07-17 Thread Ralph Shnelvar
If my code will not be shared, and My Rails app is on my own server, then Does it make a difference if the secret keys are in environment variables or ~/config/secrets.yml ? Ralph -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To uns

[Rails] Re: Help with gestalt of Pundit's authorize, please

2017-07-17 Thread Ralph Shnelvar
While I'm at it ... In authorize(@post) WHAT is being "authorize-d"? The @post ? The current_user ? The controller action ? Something else ? Ralph On Monday, July 17, 2017 at 1:02:11 AM UTC-6, Ralph Shnelvar wrote: > > The best explanation I have found for the gestalt of Pundit is > ht

[Rails] Help with gestalt of Pundit's authorize, please

2017-07-17 Thread Ralph Shnelvar
The best explanation I have found for the gestalt of Pundit is https://www.varvet.com/blog/simple-authorization-in-ruby-on-rails-apps/ And yet ... I don't get it. I can understand each statement in https://www.varvet.com/blog/simple-authorization-in-ruby-on-rails-apps/ ... but when I get to w