padrino / padrino-framework

Padrino is a full-stack ruby framework built upon Sinatra.
http://www.padrinorb.com
MIT License
3.37k stars 508 forks source link

Padrino Admin + Mongoid: embedded relations aren't recognized #1667

Open ghost opened 10 years ago

ghost commented 10 years ago

Embedded relations with mongoid don't seem to be currently supported by the admin_page generator. The (admin) pages do get created, but documents aren't persisted. More on this: http://stackoverflow.com/questions/23349363/mongoid-3-0-23-relations-in-padrino-admin-0-12-0

dariocravero commented 10 years ago

It seems as if we're missing that link between embedded objects. We should probably add a condition on the generators when using Mongo to look at any embedded_in relations and adding the object reference to the form. @padrino/core-members?