I've one specific database view which troubles me. I set up a model
class Mytestmodel < ActiveRecord::Base
./script/console output (development environment)
=> #<Product id: 260, ...>
Mytestmodel Load (0.030650) SELECT * FROM "shop_view1" LIMIT 1
Why do I get an object of Product class back here? I guess this is
somewhere cached. When I change "set_table_name" to another view, I get
a Mytestmodel back, like expected. When I change it back, I always get a
I tried this with rails 2.0.2 and 2.1.0 on ruby 1.8.6 using a postgresql
8.3 database. All caching options in environments/development.rb are
I restarted everything on my local machine, deleted all files in ./tmp/
, stopped memcached, but this behaviour still exists.
Any clue where to search for the problem here?