# Error: Helper Module in a subdirectory - RESTful route used

**URL:** <https://www.ruby-forum.com/t/error-helper-module-in-a-subdirectory-restful-route-used/126727>\
**Category:** Rails\
**Created:** [January 21, 2008, 6:39pm UTC](https://www.ruby-forum.com/t/error-helper-module-in-a-subdirectory-restful-route-used/126727 "2008-01-21T18:39:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [January 21, 2008, 6:39pm UTC](https://www.ruby-forum.com/t/error-helper-module-in-a-subdirectory-restful-route-used/126727/1 "2008-01-21T18:39:16Z")

</div>

I am using a namespace

```
 map.namespace :admin do |admin|
  admin.resources :repairs
 end

```

which puts my repairs\_controller.rb and my repairs views into admin  
subdirectory

when I use an Helper method repaired\_tables(@repair) in my  
views/admin/repairs/show.html.erb

I get an error "undefined method `repaired\_tables’ "

I tried to put my repairs\_helper inside a subdirectory too, … no change

Where shoudl I put it ? anything to add ?

thanks for your lights

kad
