So the last time I tried using ActiveRecord with shoes was circa r380
so its been a while...
The most simple script I can possibly come up with using ActiveRecord:
http://pastie.org/346096

The code in there works when run through standard ruby if the
Shoes.setup stuff is removed so I know the code is good. However, ran
through shoes it produces

Error in /home/garret/shoes/dist/lib/shoes.rb line 388
wrong constant name #<Class:0x7f9d25eafac8>

Line 388 is where shoes calls eval on the code
eval(code, Shoes.anonymous_binding, path)

Interestingly enough, if i change it to use ActiveRecord 1.15.6 (and
ActiveSupport 1.15.6)
The error becomes
"#<Class:0x7f9d25eafac8>" is not a valid constant name!

Curious that the error changes with a different version of ActiveRecord.
This is all on Ubuntu Intrepid Ibex (amd64) with edge shoes (last
commit f107ec71ca58ddeaea09d85f1f11197a13f15561)

I'm going to investigate whether the version of sqlite3 could be to
blame but if anyone has any insights let me know!

Thanks,
Garret Buell

Reply via email to