instanciating a class

test_plugin_controller.rb *does* contain

Class TestPluginController   stufff end

, doesn't it?

Also: check from the console that that class has actually been loaded by your Rails app. If not, that's probably the issue.

Otherwise, Kernel.const_get("TestPluginController").new *should* work.