detect association order in nested scaffolds when using rails4