Displaying 1 result from an estimated 1 matches for "simple_objs".
2006 Jan 13
6
rails bug ? metadata lost between page invocation ?
...mpleObj.new
p @@saved_obj.extra_attr
end
def self.get
p @@saved_obj.extra_attr
end
end
To recreate a full setup:
rails test
cd test
./script/generate model SimpleObj
./script/generate controller MyTest
Create a simple db with a table ''simple_objs''. No need to put anything
in the table db... My sqlite schema is:
drop table simple_objs;
create table simple_objs (
id integer primary key autoincrement
);
Again, the schema doesn''t matter, but it needs to be there.
That''s it.
Now start your app: ./...