I am sure i have configured the plugin well,but not know how to use it properly. first: set role using has_role or accept role method. second:permit or permit? methods is used to check or set role? I think they are used for checking,if true for a specific role,run the codes in the block of the method,if not,redirect to access denied page,right? If what i think is right,what is has_role? method? The rails-authorization-plugin doc does not show themselves very clear and there is not tutorial by google.
2009/6/30 daociyiyou <cheyu22-/E1597aS9LRv1O+Z8WTAqQ@public.gmane.org>:> > I am sure i have configured the plugin well,but not know how to use it > properly. > first: set role using has_role or accept role method. > second:permit or permit? methods is used to check or set role? > I think they are used for checking,if true for a specific role,run the > codes in the block of the method,if not,redirect to access denied > page,right? If what i think is right,what is has_role? method? > The rails-authorization-plugin doc does not show themselves very > clear and there is not tutorial by google.I still don''t know about this plugin I am afraid but have you seen the instructions at http://github.com/DocSavage/rails-authorization-plugin/tree/master/ Colin
Thank you! I am reading it now. On 7月1日, 上午4时23分, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> 2009/6/30daociyiyou<chey...-/E1597aS9LRv1O+Z8WTAqQ@public.gmane.org>: > > > > > I am sure i have configured the plugin well,but not know how to use it > > properly. > > first: set role using has_role or accept role method. > > second:permit or permit? methods is used to check or set role? > > I think they are used for checking,if true for a specific role,run the > > codes in the block of the method,if not,redirect to access denied > > page,right? If what i think is right,what is has_role? method? > > The rails-authorization-plugin doc does not show themselves very > > clear and there is not tutorial by google. > > I still don''t know about this plugin I am afraid but have you seen the > instructions athttp://github.com/DocSavage/rails-authorization-plugin/tree/master/ > > Colin