Created
March 27, 2015 03:32
-
-
Save raarellano/59c42e1082488d69d52b to your computer and use it in GitHub Desktop.
Rails form collection select with HTML options
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
=f.collection_select :category_id, Category.all, :id , :title, {prompt: "Select a Category"}, {class: "form-control"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment