ObjectID validated though it shouldn't be

5 views
Skip to first unread message

Paweł Badeński

unread,
Aug 2, 2010, 4:41:12 PM8/2/10
to DataMapper MongoDB Adapter
Hi,

I've set up dm-mongo-adapter (version from github) with dm 1.0.0 and
rails3beta4. Unfortunately when submitting a form it tries to validate
id (ObjectID) on save, which is null of course and I get an error (id
must not be blank). Not sure what information I can provide to help
you help me out ;) It's all pretty basic setup, controller is
generated with scaffold_controller and model looks like:

class Some
include DataMapper::Mongo::Resource
property :id, ObjectID
property :name, String
end

I also have secondary repository defined for postgresql - but I'm not
sure how it can have something to do with described issue.

best regards,
paweł

solnic

unread,
Aug 2, 2010, 4:57:51 PM8/2/10
to DataMapper MongoDB Adapter
On Aug 2, 10:41 pm, Paweł Badeński <pawel.baden...@gmail.com> wrote:
> Hi,
>
> I've set up dm-mongo-adapter (version from github) with dm 1.0.0 and
> rails3beta4. Unfortunately when submitting a form it tries to validate
> id (ObjectID) on save, which is null of course and I get an error (id
> must not be blank). Not sure what information I can provide to help
> you help me out ;)

Can you please report an issue on github with a sample script that
shows the problem so I won't forget about it? :)

Thanks!

// solnic

Paweł Badeński

unread,
Aug 2, 2010, 5:30:22 PM8/2/10
to dm-mongo...@googlegroups.com
Sure - it'll be there not later than friday.

2010/8/2 solnic <piotr....@gmail.com>:

--
Paweł Badeński
Kraków, Poland

Reply all
Reply to author
Forward
0 new messages