• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DavyJonesLocker / client_side_validations / 639 / 2
100%
main: 100%

Build:
Build:
LAST BUILD BRANCH: releases/23.1.0
DEFAULT BRANCH: main
Ran 07 Mar 2017 12:24PM UTC
Files 27
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 Mar 2017 12:21PM UTC coverage: 100.0%. Remained the same
2.3.3, gemfiles/rails_5.0.gemfile

push

travis-ci

tagliala
Deeply nested attributes (#697)

* Support nested nested forms

* Validate Rails nested attributes

Consider the following example:

  class User < ActiveRecord::Base
    has_many :phone_numbers
    accepts_nested_attributes_for :phone_numbers
  end

  class PhoneNumber < ActiveRecord::Base
    # This is a bit contrived, because probably it should be
    # many-to-many
    has_many :labels
    accepts_nested_attributes_for :labels
  end

  class Label < ActiveRecord::Base
    belongs_to :phone_number
  end

If you render this on 1 page to edit labels you end up with the
following attributes name

  user[phone_numbers_attributes][0][labels_attributes][0][label]

And validation is on field
  user[phone_numbers_attributes][][label_attributes][][label]

At the moment the most current version of client side validation only
supports 1 level of nesting of accepts_nested_attributes_for. This
commit makes it support any level of nesting.

443 of 443 relevant lines covered (100.0%)

22.47 hits per line

Source Files on job 639.2 (2.3.3, gemfiles/rails_5.0.gemfile)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 639
  • Travis Job 639.2
  • 3e4f857f on github
  • Prev Job for 2.3.3, gemfiles/rails_5.0.gemfile on master (#636.2)
  • Next Job for 2.3.3, gemfiles/rails_5.0.gemfile on master (#640.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc