I recently migrated my app from rails 2.3.8 to rails 3.0.7, i was using lockdown for access control but lockdown is not supported in rails 3.x. Is there any gem similar to lockdown for access control, i tried cancan but its not that much effective like lockdown(i had to write if conditions since the links were still visible).
Is there any gem in rails 3 which provides similar access control
you could take a look at gems such as cancan for authorization and OmniAuth for authentication
also look at http://railscasts.com/?tag_id=25 and http://railscasts.com/?tag_id=26 for more info.
Related
If a web application just needs to authenticate users with a google account with omniauth, in other words, users can just login with their google account.
What's the best choice to choose between the two gems:
omniauth-google-oauth2 or google-api-ruby-client ?
omniauth-google-oauth2 is your best choice, because "omniauth" gem not dependent on suppliers and perfectly integrates with Devise
We used a devise gem for Login functionality.
Now i want to implement the password expiration functionality.
So i got one devise gem i.e "devise_security_extension" on git hub.
I read this documentation for implementation of "devise_security_extension".
I tried the steps from documentation.But it is not working for me.
Can any one give step by step process to implement this "devise_security_extension" gem.
I spotted this question on the devise_security_extension issues page, I know it's been a while for you, but it might work. That leads to this fix, which I am going to try and implement tonight.
I'll report back if it helps
I'm using RailsAdmin, this time with CanCan!
I've built my Ability Model and everything looks nice. Except for this problem:
When the user logs in for the very first time (I'm using Devise), for some reason the system is not loading the correct permissions. This leads to the unconvenient situation: the user can see more actions and entities the the actual permissions would normally grant. Any subsequent requests work fine and the correct permissions are loaded. Don't know what else I might add. Logs are not reporting anything relevant. Anyone experiencing something similar?
rails 3.2.8
rails_admin 0.4.4
cancan 1.6.7
devise 2.1.2
I am using devise as a good way of authentication in my rails 3.2 application and I tried several ways to fetch online users ,I need to know if I can fetch all online users using sessions on my application
Google and stackoverflow are your friends:
There appears to be a gem for this and has been asked a lot.
"Who's Online" using Devise in Rails
In my Rails app I use Devise as the authentication system. I have successfully installed the Devide gem and its working fine.
But now I want to redirect user to a different path after they login, ex:
dash_board#home
How can I define that in Devise? I'm confused as it doesn't have any controllers shows (as sessions, users etc..). I can see them in the gem file, but I guess changing the gem is not a good option
I'm using Rails 3, Devise 1.1.3