[Rails] Re: Is it worth switching to Postgresql?

2020-03-15 Thread David Gleba
I also recommend running at least the DB in Docker. That should prevent most fiddling if your Mac OS changes. I use Docker for as much as I can. It ends up making things easier once you get up to speed with Docker. Furthermore, I just use an ubuntu virtual machine running in VirtualBox. That

Re: [Rails] Rails5 API with Devise gem

2017-10-25 Thread David Gleba
I created a little app builder so I can study features and rebuild them many times to learn. Running it creates an app with jwt token auth and views too. It's here: https://github.com/dgleba/bashrail This: https://github.com/dgleba/bashrail/blob/master/devisejwt.sh is the token auth part.

Re: [Rails] Re: RBAC_CANCAN

2017-07-19 Thread David Gleba
Do this in your project folder at command prompt. rails generate scaffold User2 email:string encrypted_password:string reset_password_token:string reset_password_sent_at:datetime remember_created_at:datetime sign_in_count:integer current_sign_in_at:datetime last_sign_in_at:datetime

Re: [Rails] Re: RBAC_CANCAN

2017-07-19 Thread David Gleba
I added user2 to https://github.com/dgleba/brail347a22 -- You received this message because

Re: [Rails] Re: RBAC_CANCAN

2017-07-19 Thread David Gleba
it run normally and me i need to add user or item > in the html.erb file? > > > Le mercredi 19 juillet 2017 19:07:46 UTC-4, David Gleba a écrit : >> >> For your second item: >> >> I suggest that you download this: https://github.com/dgleba/brail347a22 &g

Re: [Rails] Re: RBAC_CANCAN

2017-07-19 Thread David Gleba
eed to import new projet and doing test for this) > > Le mercredi 19 juillet 2017 06:47:20 UTC-4, David Gleba a écrit : >> >> I may not be answering your question on this one, but I just an admin >> tool to add a user since the administrator of the system must grant the >

Re: [Rails] Re: RBAC_CANCAN

2017-07-19 Thread David Gleba
o know how do to insert a new users using user view > or devise and respected role. > in my userscontroller if i put at the top: before_filter > :authentificate_user i hav and error saying > use before_action > > > Le mardi 18 juillet 2017 22:47:12 UTC-4, David Gleba a éc

Re: [Rails] Re: RBAC_CANCAN

2017-07-18 Thread David Gleba
The article has an app in github. https://github.com/jameshibbard/authentication-with-devise-and-cancancan Can you download it and run it successfully? On Tuesday, July 18, 2017 at 10:28:33 PM UTC-4, David Gleba wrote: > > I see that in one spot you have Admin - capitalized. and in a

Re: [Rails] Re: RBAC_CANCAN

2017-07-18 Thread David Gleba
I see that in one spot you have Admin - capitalized. and in another it is not capitalized - admin. I wonder if capitalization matters in your code. Note that we can't see your code. That makes it harder to help you when we can't see the code. On Tuesday, July 18, 2017 at 7:07:11 PM UTC-4,

Re: [Rails] Re: RBAC_CANCAN

2017-07-17 Thread David Gleba
at 11:29:07 PM UTC-4, David Gleba wrote: > > 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

[Rails] Re: RBAC_CANCAN

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

[Rails] Re: RBAC_CANCAN

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

[Rails] Re: One database and several users with different access rights

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

[Rails] Rails_admin - move edit button and others to the left side of the list view

2016-09-06 Thread David Gleba
I am have been looking for documents / posts / articles / etc on how to move the edit button and those beside it to the left side of the list view. I haven't found anything. Can someone help me with how to move these buttons?

[Rails] Re: Need few developers who want to get interesting online learning for free

2016-08-18 Thread David Gleba
I am interested and I just signed up. Let the lessons begin! On Wednesday, August 17, 2016 at 8:42:46 AM UTC-4, Mikhail Khomutetskiy wrote: > > Hi! > I'm looking for 10-15 RoR developers who wants to become first users of my > educational service http://procoder.io for free. This is limited