RailsCasts Pro episodes are now free!

Learn more or hide this

Tobias's Profile

GitHub User: TobiFrano

Comments by Tobias


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.