Re: [Rails] Re: Roll my own Role based permission or use CanCan Gem?

2012-01-14 Thread Santosh c
Hi, my app is ruby based but I am not using rails. Can I still use CanCan? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email

Re: [Rails] Re: Roll my own Role based permission or use CanCan Gem?

2012-01-14 Thread Don
CanCan is Rails specific - the docs on GitHub clearly state it is for Ruby on Rails. From my limited experience, CanCan requires Gems that are Rails specific and relies on many aspects of Rail's MVC structure. I estimate it would be a big job to rework CanCan to be not dependent on Rails

[Rails] Re: Roll my own Role based permission or use CanCan Gem?

2012-01-14 Thread Don
Yes, CanCan is very controller centric. Sounds like the declarative_autorization gem allows one to follow the skinny controllers, fat models design mantra. I'll have to check it out. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To

[Rails] Re: Roll my own Role based permission or use CanCan Gem?

2012-01-13 Thread Don
I'm fairly new to the Rails community and recently faced a similar situation. First from what you describe, CanCan will most certainly provide the functionality you desire. Secondly, there is a nice screencast at Railscasts.com that provides a good introduction, however some of processes in

[Rails] Re: Roll my own Role based permission or use CanCan Gem?

2012-01-13 Thread tmueller
Hi Don, Thanks for the write-up on CanCan. I'm currently trying out declarative_authorization as I want to have the role info be accessible in my models. On Jan 13, 8:47 am, Don don.leat...@gmail.com wrote: I'm fairly new to the Rails community and recently faced a similar situation.  First

[Rails] Re: Roll my own Role based permission or use CanCan Gem?

2012-01-12 Thread tmueller
Hi Dave, Thanks for the quick reply. I'll give CanCan a go as from what I've read it should cover most everything I need for role auth. Todd On Jan 12, 10:35 am, Dave Aronson googlegroups2d...@davearonson.com wrote: On Thu, Jan 12, 2012 at 12:29, tmueller todd.c.muel...@gmail.com wrote: I

[Rails] Re: Roll my own Role based permission or use CanCan Gem?

2012-01-12 Thread djangst
http://asciicasts.com/episodes/192-authorization-with-cancan On Jan 12, 1:57 pm, tmueller todd.c.muel...@gmail.com wrote: Hi Dave, Thanks for the quick reply. I'll give CanCan a go as from what I've read it should cover most everything I need for role auth. Todd -- You received this