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

Fix always use build associated #312

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix always use build associated #312

wants to merge 2 commits into from

Conversation

clyfe
Copy link
Contributor

@clyfe clyfe commented Nov 17, 2013

Retry for #310
I fixed the 2 tests that were failing.
If there are other issues please let me know.

@scambra
Copy link
Member

scambra commented Nov 18, 2013

You found the issue, but then you changed the test. Order is changed if build_associated is used.

@clyfe
Copy link
Contributor Author

clyfe commented Nov 18, 2013

I was thinking the order is irrelevant. I'll look into how the order can be preserved and resubmit.

@scambra
Copy link
Member

scambra commented Nov 18, 2013

It was one of the issues. When you create some lines in subform, and when you edit you see lines in subform in a different order, in some cases it can be confusing for users so ActiveScaffold should preserve order.

Another issue was on has_one associations on rails4, but finally I had to change send("#{column.name}=", value) line. if you can use build_associated and original tests pass, it should be ok

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