Sha256: f350db91710001e0744f943161206e6b30aba0513063987e32c214b127232243

Contents?: true

Size: 436 Bytes

Versions: 5

Compression:

Stored size: 436 Bytes

Contents

# TODO: not used atm
class BookFormWithNestedAttributes < Netzke::Basepack::Form
  def configure(c)
    c.merge!(
      :title => Book.model_name.human,
      :model => "Book",
      :record => Book.first,
      :items => [
        :title,
        {:name => :author__first_name, :nested_attribute => true},
        {:name => :author__last_name, :nested_attribute => true},
        :digitized,
        :exemplars
      ]
    )
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
netzke-basepack-0.8.4 test/basepack_test_app/app/components/book_form_with_nested_attributes.rb
netzke-basepack-0.8.3 test/basepack_test_app/app/components/book_form_with_nested_attributes.rb
netzke-basepack-0.8.2 test/basepack_test_app/app/components/book_form_with_nested_attributes.rb
netzke-basepack-0.8.1 test/basepack_test_app/app/components/book_form_with_nested_attributes.rb
netzke-basepack-0.8.0 test/basepack_test_app/app/components/book_form_with_nested_attributes.rb