active_admin/formtastic ignoring polymorphic associations
- by James Maskell
I'm currently having trouble with the form for a polymorphic association in active_admin in Ruby on Rails.
I have three models set up: offices, companies and users. Both companies and users can own an office. My models are set up as follows:
class Office < ActiveRecord::Base
belongs_to :ownable, :polymorphic => true
end
class User <…