4 ms·
I am using devise and auth_logic for authentication and authorization. But I am struggling with rolling my own, so was wondering if there is a gem that does it
by marcamillion 16y ago
I am using devise and auth_logic for authentication and authorization.
But I am struggling with rolling my own, so was wondering if there is a gem that does it.
I found one - https://github.com/linoj/saasramp https://github.com/linoj/saasramp - but doesn't seem to be written for Rails 3 (and hasn't been updated).
Know of any others like that, but for Rails 3 ?
- bdclimber14 16y agoI think you may be confused with a couple things. Devise and AuthLogic are both authentication gems, and wouldn't be used together. They only authenticate a user, but they don't authorize actions. For authorization, a gem like CanCan would be a good fit. saasramp looks like a way to do handle CC's and submit for processing. From my experience, don't do this. Let Chargify or someone else handle payments on a hosted payment page. It's not worth the risk.
- marcamillion 16y agoSorry...I meant declarative_authorization. Yeh, I don't want to handle CCs & submit for processing. I need assistance with the application logic, but I think I got it. Thanks.