views:

32

answers:

2

When accessing my Rails app locally, I get the following error when loading any page:

/!\ FAILSAFE /!\  Tue Jul 06 15:08:17 -0500 2010
Status: 500 Internal Server Error
Expected /my_rails_app/app/helpers/admin/article_categories_helper.rb to define Admin::ArticleCategoriesHelper

If I follow the full trace, I'm brought to this line in my application controller:

helper :all

If I comment out that line, everything appears to load fine.

Also, here's the contents of my /admin/article_categories_helper.rb file:

module Admin::ArticleCategoriesHelper
end

So, any ideas what could be causing this and how to fix it?

+1  A: 

Your file should be named

/admin/article_categories_helper.rb

instead of

/admin/articles_categories_helper.rb
j.
Sorry, the file is actually named correctly (no "s")...was a typo in my post, which I've corrected.
Shpigford
What was the reason for -1? It would be good to leave a comment when doing this...
j.
A: 

That error often means it's had some problem loading the file in question. Is the Admin module defined at that point? You can try:

module Admin
  module ArticleCategoriesHelper
  end
end

instead. This will work whether Admin exists or not.

Simplest solution would be to just remove the file entirely, since you don't seem to be using it for anything.

seriousken