Kad Kerforn
2008-Jan-21 17:39 UTC
error: Helper Module in a subdirectory - RESTful route used
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
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---