Sha256: 999d15d6e7385ee50c824472266893b3bf142927e30117744a8c927364e94f81

Contents?: true

Size: 423 Bytes

Versions: 4

Compression:

Stored size: 423 Bytes

Contents

ActiveAdmin.register Post do
  association_actions
  
  form :partial => "admin/shared/form"
  
  form_columns :title, :body, :creator
  
  active_association_form do |f|
    f.inputs :id => 'more-inputs' do
      f.input :published_at, :input_html => {:class => 'my-date-picker'}, :as => :string
      f.input :featured
    end
  end
  
  form_associations do
    association :tags do
      fields :name
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
activeadmin_associations-0.1.3 spec/dummy/app/admin/posts.rb
aa_associations-0.1.2 test/dummy/app/admin/posts.rb
aa_associations-0.1.1 test/dummy/app/admin/posts.rb
aa_associations-0.1.0 test/dummy/app/admin/posts.rb