# Authiorization plugin problem

**URL:** <https://www.ruby-forum.com/t/authiorization-plugin-problem/157501>\
**Category:** Ruby\
**Created:** [January 12, 2009, 12:06pm UTC](https://www.ruby-forum.com/t/authiorization-plugin-problem/157501 "2009-01-12T12:06:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pshah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a698b9/32.png) [@pshah](https://www.ruby-forum.com/u/pshah)\
**Post date:** [January 12, 2009, 12:06pm UTC](https://www.ruby-forum.com/t/authiorization-plugin-problem/157501/1 "2009-01-12T12:06:07Z")

</div>

hi,

i try to use authorization plugin but i got errors “undefined method  
`has\_role’”

can any one explain aout how i have to write in model and controller?

i have read its rdoc but don’t get all things exactly.

And i m use this with restful\_authentication with rails 2.2.2.
