RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: TobiFrano
Never mind, must have been too little sleep. Using a class_name solves it.
I have a problem with nested forms and a polymorphic model. Using comments as an example, how does one add multiple has_many :through for the comments needed.
has_many :comments, :through => :images
has_many :comments, :through => :articles
The second has_many overwrites the first one and :through only allows one reference.
Any tips appreciated.