Displaying 1 result from an estimated 1 matches for "find_or_create_by_team_id".
2008 Sep 17
0
permalink_fu and classes with different primary_key than id?
...ect value to team_id
The real bizarness comes here:
>> fs.id = 1
=> 1
>> fs
=> #<Team team_id: 1, abbr: nil, city: nil, created_at: nil,
updated_at: nil, permalink: nil>
How does this happen?
This is all well and good except that these things fail:
>> record = Team.find_or_create_by_team_id(1)
NoMethodError: undefined method `team_id='' for #<Team:0x2af1173b2418>
Help!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to...