[Rails] How to achieve STI has_many :through referencing to the same STI

2009-02-10 Thread satynos
Post" or "Asset". Is there any way possible to achieve what I am trying without any plugins? How can I tell ActiveRecord to save the content_type and target_type of the relationship with the actual class name instead of the base class name? BTW: I looked into has_many_polymorphs, but i

[Rails] [SOLVED] Re: Expected .. to define

2009-01-14 Thread satynos
/models/ application.rb when you instantiate Application object. Expected / .../app/controllers/application.rb to define Application. Instead when you rename the app/controllers/application.rb (base controller) to app/controllers/application_controller.rb, everything works as expected. -Satynos

[Rails] Re: Expected .. to define

2009-01-14 Thread satynos
ion.rb to app/ controllers/application_controller.rb and everything works as expected. -Satynos On Jan 12, 9:21 am, Frederick Cheung wrote: > On Jan 12, 12:59 pm, Caesar wrote:> I also had the > same problem. My application is running rails 2.0.2. > > Has anyone actually found a good so