Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add failing test for fields_for validation #163

Closed
wants to merge 1 commit into from
Closed

Add failing test for fields_for validation #163

wants to merge 1 commit into from

Conversation

mjroghelia
Copy link

Form builder methods called within
a fields_for block generate NoMethodError
by calling fetch on nil when rendering
validation error messages from the
associated object. This PR includes
a failing test demonstrating the bug, not
the fix itself.

The actual fix was previously submitted by @MichaelSp in PR #146, but since that has been open for a while, I'm hoping contributing a test will help move it along.

Form builder methods called within
a fields_for block generate NoMethodError
by calling fetch on nil when rendering
validation error messages from the
associated object. This includes
a failing test demonstrating the bug, not
the fix itself.
@coveralls
Copy link

coveralls commented Apr 28, 2016

Coverage Status

Coverage decreased (-1.4%) to 98.649% when pulling 411dd7a on mjroghelia:failing-fields-for-test into 88a6398 on Fullscreen:master.

@mjroghelia mjroghelia closed this Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants