On Sunday, July 18, 2010 07:42:52 am Ken Yap wrote: > Ok, I've got Rails working with DM and I can display my pages, using > the tutes below: > > http://code.google.com/p/appengine-jruby/wiki/RunningRails > http://gist.github.com/268192 > > However I appear to be using memory as store and I can't persist data.
Are you sure? What do you get from here: DataMapper.repository.adapter.class Object.const_defined? :AppEngine Compare those between console and server. > The strange thing is that if I run script/console.sh, I am writing to > WEB-INF/appengine-generated/local_db.bin and I can persist records. So > how come it doesn't use this in script/server.sh? That's likely a bug, but not likely a DataMapper bug. I've CC'd this to the appengine-jruby group: http://groups.google.com/group/appengine-jruby you'll probably have better luck there. > Output of script/about: > > About your application's environment > Ruby version 1.8.7 (x86_64-linux) > RubyGems version 1.3.7 > Rack version 1.0 > Rails version 2.3.5 > Active Record version 2.3.5 > Active Resource version 2.3.5 > Action Mailer version 2.3.5 > Active Support version 2.3.5 > Application root /home/local/jruby/dir > Environment development > Database adapter nulldb > Database schema version 0 > > What am I missing? What do I need to fix? > > Thanks in advance. -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to datamap...@googlegroups.com. To unsubscribe from this group, send email to datamapper+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.