# Sync\_permissions not working on controller modules

**URL:** <https://www.ruby-forum.com/t/sync-permissions-not-working-on-controller-modules/73381>\
**Category:** Engines\
**Created:** [February 26, 2006, 5:26am UTC](https://www.ruby-forum.com/t/sync-permissions-not-working-on-controller-modules/73381 "2006-02-26T05:26:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Johanesen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ecae2f/32.png) [@Chris\_Johanesen](https://www.ruby-forum.com/u/Chris_Johanesen)\
**Post date:** [February 26, 2006, 5:26am UTC](https://www.ruby-forum.com/t/sync-permissions-not-working-on-controller-modules/73381/1 "2006-02-26T05:26:19Z")

</div>

Quick Question:

I’ve got UserEngine and LoginEngine working on my app and everything’s  
going great. My problem is that while sync\_permissions works for my  
regular controllers, it’s not working for my admin ones that are in a  
subdirectory (:controller =\> ‘admin/articles’) Is there any way to get  
it to see these controllers, or am I going to have to enter all the  
controllers & actions into the permission table manually?

Thanks for the help.

---

<div class="post-metadata">

**Author:** ![Chris\_Johanesen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ecae2f/32.png) [@Chris\_Johanesen](https://www.ruby-forum.com/u/Chris_Johanesen)\
**Post date:** [March 5, 2006, 1:49am UTC](https://www.ruby-forum.com/t/sync-permissions-not-working-on-controller-modules/73381/2 "2006-03-05T01:49:57Z")

</div>

Chris Johanesen wrote:

> Quick Question:
> 
> I’ve got UserEngine and LoginEngine working on my app and everything’s  
> going great. My problem is that while sync\_permissions works for my  
> regular controllers, it’s not working for my admin ones that are in a  
> subdirectory (:controller =\> ‘admin/articles’) Is there any way to get  
> it to see these controllers, or am I going to have to enter all the  
> controllers & actions into the permission table manually?
> 
> Thanks for the help.

I had the same problem and discovered that the problem had been  
addressed in the svn version. However, it seems to have been broken  
again in the latest entries. Additionally, the function  
wrapped\_table\_name was re-introduced, which causes a compile error on my  
machine. Any ideas guys about these two issues in the trunk?

Anyway, Chris:  
I solved it for now by checking out a not-quite-head version of the  
plugin.

cd to your plugins directory, blow away the existing user\_engine dir,  
and do  
svn co -r 278 [http://opensvn.csie.org/rails\_engines/user\_engine/trunk](http://opensvn.csie.org/rails_engines/user_engine/trunk)  
user\_engine

This gets you a version that works with modules.

Keith

---

<div class="post-metadata">

**Author:** ![Chris\_Johanesen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ecae2f/32.png) [@Chris\_Johanesen](https://www.ruby-forum.com/u/Chris_Johanesen)\
**Post date:** [March 5, 2006, 5:23am UTC](https://www.ruby-forum.com/t/sync-permissions-not-working-on-controller-modules/73381/3 "2006-03-05T05:23:37Z")

</div>

> I solved it for now by checking out a not-quite-head version of the  
> plugin.
> 
> cd to your plugins directory, blow away the existing user\_engine dir,  
> and do  
> svn co -r 278 [http://opensvn.csie.org/rails\_engines/user\_engine/trunk](http://opensvn.csie.org/rails_engines/user_engine/trunk)  
> user\_engine
> 
> This gets you a version that works with modules.

Thanks, this worked perfectly.
