# Rails-authorization-plugin

**URL:** <https://www.ruby-forum.com/t/rails-authorization-plugin/171305>\
**Category:** Rails\
**Created:** [June 30, 2009, 10:01am UTC](https://www.ruby-forum.com/t/rails-authorization-plugin/171305 "2009-06-30T10:01:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![daociyiyou](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/0ea827/32.png) [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Post date:** [June 30, 2009, 10:01am UTC](https://www.ruby-forum.com/t/rails-authorization-plugin/171305/1 "2009-06-30T10:01:31Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![daociyiyou](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/0ea827/32.png) [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Post date:** [June 30, 2009, 11:16am UTC](https://www.ruby-forum.com/t/rails-authorization-plugin/171305/2 "2009-06-30T11:16:40Z")

</div>

anyone help?

---

<div class="post-metadata">

**Author:** ![daociyiyou](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/0ea827/32.png) [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Post date:** [June 30, 2009, 4:18pm UTC](https://www.ruby-forum.com/t/rails-authorization-plugin/171305/3 "2009-06-30T16:18:55Z")

</div>

The most funny answer i ever had. Thanks,Colin L.

---

<div class="post-metadata">

**Author:** ![daociyiyou](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/0ea827/32.png) [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Post date:** [June 30, 2009, 1:11pm UTC](https://www.ruby-forum.com/t/rails-authorization-plugin/171305/4 "2009-06-30T13:11:10Z")

</div>

2009/6/30 daociyiyou [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> anyone help?

Three hours is not really long enough to wait, a third of the world is  
asleep and another third is working. Most of the rest don’t know what  
RoR is which leaves us with me apparently, and I don’t know the  
answer. With a little patience someone who does know the answer may  
come along.

Colin

---

<div class="post-metadata">

**Author:** ![daociyiyou](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/0ea827/32.png) [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Post date:** [July 1, 2009, 2:48pm UTC](https://www.ruby-forum.com/t/rails-authorization-plugin/171305/5 "2009-07-01T14:48:08Z")

</div>

Thank you! I am reading it now.

---

<div class="post-metadata">

**Author:** ![daociyiyou](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/0ea827/32.png) [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Post date:** [June 30, 2009, 10:23pm UTC](https://www.ruby-forum.com/t/rails-authorization-plugin/171305/6 "2009-06-30T22:23:57Z")

</div>

2009/6/30 daociyiyou [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> 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

> **[GitHub - DocSavage/rails-authorization-plugin: This plugin provides a flexible...](https://github.com/DocSavage/rails-authorization-plugin/tree/master/)**
>
> master/

Colin
