Hi everybody, Im using sqlserver (sqlserver adapter). I think that is some bug. any idea?
on 2006-02-24 22:30
on 2006-02-24 22:45
Are your saves working? unless object.save raise :Yikes end Perhaps your model isn't validating? -- -- Tom M.
on 2006-03-16 01:10
yes, my saves are working fine....
on 2006-03-16 04: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 16: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 18:37
Is your ID column set to auto-increment? -- -- Tom M.
on 2006-03-17 20:32