Hi everybody, Im using sqlserver (sqlserver adapter). I think that is some bug. any idea?
on 2006-02-24 21:30
on 2006-02-24 21:45
Are your saves working? unless object.save raise :Yikes end Perhaps your model isn't validating? -- -- Tom Mornini
on 2006-03-16 00:10
yes, my saves are working fine....
on 2006-03-16 03:05
2006/2/24, Noel R. Morais <email@example.com>: > Im using sqlserver (sqlserver adapter). > > I think that is some bug. > > any idea? Are you saying that you change the model's ID and that the save does not update the ID of the record ? I'm not sure that changing the ID is supported. Check the log to see what gets saved. Hope that helps !
on 2006-03-17 15:40
What is happening is that when i do: m = Model.new m.description = 'Another test' puts 'Work fine' if m.save puts 'The attribute ID wasn't updated' if m.id.nil? m = Model.find(:first, :order => 'id desc' ) puts m.description The output is: $: Work fine $: The attribute ID wasn't updated $: Another test The record was inserted but the model object wasn't updated with the id of the new record.
on 2006-03-17 17:37
Is your ID column set to auto-increment? -- -- Tom Mornini
on 2006-03-17 19:32