hi -
can someone elaborate what a "TypeError: can't dup Symbol" error
means?
we are getting code as below break after installing DM 096...
---
on 094 + 095:
irb(main):016:0> p=User.first
=> #<User id=3 avatar_id=4 brain_id=1 admin=false npc=false
email="[EMAIL PROTECTED]" nickname="charles" registration_key=nil
uuid=nil crypted_password=nil salt=nil created_at=Sun, 31 Aug 2008
19:37:44 +0000 updated_at=Sun, 31 Aug 2008 19:37:44 +0000
remember_token=nil remember_token_expires_at=nil first_login=true
suspended=false joined_through_user_id=nil invitations_left=1
login_time=nil lang="ja" level=0 exp=0 bad_first_email=false
bad_second_email=false change_email_to=nil coins=100 friend_count=0
reg_flag=255 px=4 py=2 map_tile=50 map_name="a">
irb(main):017:0> p.profile
=> #<Profile id=6 user_id=3 birthday=Wed, 31 Aug 1983 gender=:male
married=false location_id=4 occupation_id=4 created_at=Sun, 31 Aug
2008 19:37:45 +0000 age_published=true married_published=true
gender_published=true location_published=true
occupation_published=true>
irb(main):018:0>
---
on 096:
irb(main):018:0> p=User.first
=> #<User id=3 avatar_id=1 brain_id=1 admin=false npc=false
email="[EMAIL PROTECTED]" nickname="charles" registration_key=nil
uuid=nil crypted_password=nil salt=nil created_at=Mon, 01 Sep 2008
04:37:19 +0900 updated_at=Mon, 01 Sep 2008 04:37:19 +0900
remember_token=nil remember_token_expires_at=nil first_login=true
suspended=false joined_through_user_id=nil invitations_left=1
login_time=nil lang="ja" level=0 exp=0 bad_first_email=false
bad_second_email=false change_email_to=nil coins=100 friend_count=0
reg_flag=255 px=4 py=2 map_tile=50 map_name="a">
irb(main):019:0> p.profile
TypeError: can't dup Symbol
from /usr/local/lib/ruby/gems/1.8/gems/extlib-0.9.6/lib/extlib/
object.rb:136:in `dup'
from /usr/local/lib/ruby/gems/1.8/gems/extlib-0.9.6/lib/extlib/
object.rb:136:in `try_dup'
from /usr/local/lib/ruby/gems/1.8/gems/dm-core-0.9.6/lib/dm-core/
property.rb:397:in `set_original_value'
from /usr/local/lib/ruby/gems/1.8/gems/dm-core-0.9.6/lib/dm-core/
property.rb:379:in `get'
from /usr/local/lib/ruby/gems/1.8/gems/dm-core-0.9.6/lib/dm-core/
resource.rb:102:in `attribute_get'
from /usr/local/lib/ruby/gems/1.8/gems/dm-core-0.9.6/lib/dm-core/
model.rb:397:in `gender'
from /usr/local/lib/ruby/gems/1.8/gems/dm-core-0.9.6/lib/dm-core/
resource.rb:200:in `send'
from /usr/local/lib/ruby/gems/1.8/gems/dm-core-0.9.6/lib/dm-core/
resource.rb:200:in `inspect'
from /usr/local/lib/ruby/gems/1.8/gems/dm-core-0.9.6/lib/dm-core/
property_set.rb:45:in `each'
from /usr/local/lib/ruby/gems/1.8/gems/dm-core-0.9.6/lib/dm-core/
property_set.rb:45:in `each'
from /usr/local/lib/ruby/gems/1.8/gems/dm-core-0.9.6/lib/dm-core/
resource.rb:196:in `inspect'
from /usr/local/lib/ruby/1.8/irb.rb:298:in `output_value'
from /usr/local/lib/ruby/1.8/irb.rb:151:in `eval_input'
from /usr/local/lib/ruby/1.8/irb.rb:259:in `signal_status'
from /usr/local/lib/ruby/1.8/irb.rb:147:in `eval_input'
from /usr/local/lib/ruby/1.8/irb.rb:146:in `eval_input'
from /usr/local/lib/ruby/1.8/irb.rb:70:in `start'
from /usr/local/lib/ruby/1.8/irb.rb:69:in `catch'
from /usr/local/lib/ruby/1.8/irb.rb:69:in `start'
from /usr/local/lib/ruby/gems/1.8/gems/merb-core-0.9.6/lib/merb-core/
rack/adapter/irb.rb:106:in `start'
from /usr/local/lib/ruby/gems/1.8/gems/merb-core-0.9.6/lib/merb-core/
server.rb:53:in `start'
from /usr/local/lib/ruby/gems/1.8/gems/merb-core-0.9.6/lib/merb-
core.rb:91:in `start'
from /usr/local/lib/ruby/gems/1.8/gems/merb-core-0.9.6/bin/merb:12
from /usr/local/bin/merb:19:in `load'
from /usr/local/bin/merb:19irb(main):020:0>
FWIW the key linking the tables is
Profile.user_id
not
User.profile_id
Any insights appreciated.
/dc
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---