Skip to content

Instantly share code, notes, and snippets.

@dubilla
Created March 7, 2014 22:52
Show Gist options
  • Save dubilla/9421830 to your computer and use it in GitHub Desktop.
Save dubilla/9421830 to your computer and use it in GitHub Desktop.
nested_form unique id
- object_id = f.object_name.gsub(/[^0-9]+/,'') || f.options[:child_index]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment