I notice that after saving a new object to the database it's id is not
set.

Is this deliberate?
(I would expect the id attribute to be set to the id of the new row)

Here's an example of a create action:
def create(thing)
  @thing = Thing.new(thing)
  if @thing.save
    render @thing.id    # ==> nil
  end
end

George

--

You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.


Reply via email to