Intermittent "plugin not found" error

I had a similar problem (though it seemed to be warning and not an error), but making my line like this:

use the PLUGIN_NAME seems to have fixed it.

Like Robert said, it might fix some things if you put your controller in app/controllers rather than in plugin.rb. I too was confused where it might be.