I'm new in ObjectiveResource too... but looking in its source code I saw that getRemoteId returns the model object id and uses in methods like updateRemote and deleteRemote. Like it is returning nil for me, I was not being able to update or delete a record in my iPhone app.
Well, I didn't find a solution in ObjectiveResource... but I found an alternative solution that worked for me. I just created a new column in my database's table called "id" and created a TRIGGER to copy the value of the "cod" column before every INSERT.
As I said, it was an alternative solution and only worked for me because I had administrator privilegies in the database. But it would not work if I need to consume a third party Rails Web Service.
Is there any way to configure the primary key column name in ObjectiveResource?