我一直在做RoR多年,但这是我第一个使用Mongo(也是我的第一个api-only项目)的项目。我在HABTM协会工作很艰难,我怀疑它与params有关,但我不确定还有什么可以尝试的。 下面是我得到了什么: class Project
include Mongoid::Document
field :name, type: String
field :start_da
我已经按照我的模型类: public class Party
{
public int Id {get; set;}
}
[Table("Person")]
public class Person:Party
{
public string FirstName {get; set;}
public string LastName {get; set;}