[Rails] Re: Foreign key re-assignment does not work in :belongs_to

2009-01-05 Thread Martin Hawkins
Spot on, thanks. SO simple when you know how! Martin On Jan 5, 4:58 pm, Frederick Cheung wrote: > On 5 Jan 2009, at 16:49, Martin Hawkins wrote: > > > > > When I try it the other way, > > dim_player_found = DimPlayer.find(:first, :conditions => [ "surname > > = ?", ""]) > > dim_player_found.

[Rails] Re: Foreign key re-assignment does not work in :belongs_to

2009-01-05 Thread Frederick Cheung
On 5 Jan 2009, at 16:49, Martin Hawkins wrote: > > When I try it the other way, > dim_player_found = DimPlayer.find(:first, :conditions => [ "surname > = ?", ""]) > dim_player_found.map_players gives me an error, such as the one below, > which suggests I'm doing something wrong with the :fore