uninitialized constant ApplicationController (NameError) may mean a lot of things, as a Google search for the term might attest.
However, for me, it’s usually because I am trying the run the controller as a test! (I blame the ‘run’ button in Eclipse, too easy).
Moral of the story? Might pay to check what you are running, and try Alt-X-U to start the test run manually.