Created
December 6, 2014 10:42
-
-
Save pepetox/56ec62c229dd96460b9c to your computer and use it in GitHub Desktop.
Setting the son element in a rails relation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.... in a form tag | |
<%= f.collection_select(:category_id, Category.all, :id, :name, {:include_blank => true}) %> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment