Rails中模型的命名约定是什么?如果我的模型是关于飞行的汽车,那么下列哪个类名是最合适的?ActiveRecord型号名称约定
class FlyingCar < ActiveRecord::Base
attr_accessible :model, :max_speed
end
class Flying_Car < ActiveRecord::Base
attr_accessible :model, :max_speed
end
class Flying_car < ActiveRecord::Base
attr_accessible :model, :max_speed
end
谢谢大家的更详细的解答 –