single-table-inheritance
Bug with Single Table Inheritance (STI) and has_and_belongs_to_many (HABTM) associations
Using Rails 3.0.7, and have the following 4 models: class User < ActiveRecord::Base end class Administrator < User[详细]
2023-03-08 21:50 分类:问答single table inheritance with embeds_one mogoid
I have a model class Post include Mongoid::Document include Mongoid::Timestamps embeds_one :comment end and I have comment class[详细]
2023-03-04 21:52 分类:问答Rails: Using Devise with single table inheritance
I am having a problem getting Devise to work the way I\'d like with single table inheritance. I have two different types of account organised as follows:[详细]
2023-02-26 07:55 分类:问答Hibernate: org.hibernate.WrongClassException, SINGLE_TABLE inheritance and DiscriminatorFormula
I\'m using Hibernate 3.2.2 GA with HSQLDB 2.0 GA, and I have a class hierarchy similar to the following:[详细]
2023-02-24 15:09 分类:问答Single Table Inheritance with Join Table has_one association is returning a method_missing error
I\'m having a problem getting my data model to work correctly. I have the following models and sub models.[详细]
2023-02-17 01:34 分类:问答What to consider when deciding to use Single Table Inheritance
I\'m getting ready to start a small project that provides an opportunity to use single table inheritance.As I read through prior post on STI on Stackoverflow there seems to be some strong opinions on[详细]
2023-02-14 23:41 分类:问答Single Controller, multiple (inherited) classes (rails 3)
I have a base class inherited by 2 others via Single Table Inheritance. I want all subclasses to share the same controller/views for various reasons-the only real difference is in the model\'s functio[详细]
2023-02-13 00:42 分类:问答Smart Filtering with Rails ActiveRecord
Lets assume that i have an AR model Foo Foo.find methods will r开发者_运维问答eturn all entries from the foo table based on the criteria.. What i need is to have some kind of default criteria like c[详细]
2023-02-12 10:17 分类:问答Ruby On Rails Hierarchical Relationship Modeling
I have a base table called users which holds all common information about a user such as name, address, phone number...etc[详细]
2023-02-12 05:41 分类:问答How to change type of a record and run validations of the correct class in rails using the type column?
I have a model which uses Single table inheritance and has different types (school year of type either semester or quarter) and each type has its own validations. If a user tries to change the type of[详细]
2023-02-10 04:34 分类:问答