Sha256: c7d6c4fcd287c14394e37cbe90bcd9d6abdd2f70f3f67a821db33732b66397a9

Contents?: true

Size: 432 Bytes

Versions: 11

Compression:

Stored size: 432 Bytes

Contents

class BookFormWithNestedAttributes < Netzke::Basepack::FormPanel
  js_property :title, Book.model_name.human

  def default_config
    super.merge(
      :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

11 entries across 11 versions & 2 rubygems

Version Path
netzke-basepack-0.7.7 test/basepack_test_app/app/components/book_form_with_nested_attributes.rb
netzke-basepack-zh-0.7.6 test/basepack_test_app/app/components/book_form_with_nested_attributes.rb
netzke-basepack-0.7.6 test/basepack_test_app/app/components/book_form_with_nested_attributes.rb
netzke-basepack-0.7.5 test/basepack_test_app/app/components/book_form_with_nested_attributes.rb
netzke-basepack-0.7.4 test/basepack_test_app/app/components/book_form_with_nested_attributes.rb
netzke-basepack-0.7.3 test/basepack_test_app/app/components/book_form_with_nested_attributes.rb
netzke-basepack-0.7.2 test/basepack_test_app/app/components/book_form_with_nested_attributes.rb
netzke-basepack-0.7.1 test/basepack_test_app/app/components/book_form_with_nested_attributes.rb
netzke-basepack-0.6.5 test/rails_app/app/components/book_form_with_nested_attributes.rb
netzke-basepack-0.7.0 test/rails_app/app/components/book_form_with_nested_attributes.rb
netzke-basepack-0.6.4 test/rails_app/app/components/book_form_with_nested_attributes.rb