I am trying to create an ActiveRecord model called 'Search' without a table. I keep getting this error when I do @search = Search.new.
sql::Error: Table 'searchdemo_development.tablelesses' doesn't exist: SELECT * FROM tablelesses
I am using the idea from this comment: http://stackoverflow.com/questions/315850/rails-model-without-database/318919#318919. I also get the same kind of error doing the basic:
class Search < ActiveRecord::Base
end
How do I get ActiveRecord stop looking for a table?