Sunday, November 21, 2010

ActiveRecord: Can't Retrieve value of Id after insert

Although there could be many problems (for example the record isn't actually saving), another problem I ran into is that you need to be using naming conventions. I was using 'Id' for my primary field name. That didn't work. Tried it with 'id' and everything began working well again.