It looks like the test is already the name of a module called Test if it looks like you have a name conflict. Try to place your own model in a module i.e.
module MyModule
class Test < ActiveRecord::Base
end
end
and then calling it like that
@test = MyModule::Test.new
source
to share