Created
April 27, 2018 10:56
-
-
Save swmcc/ba4b254c53f6a9a2fe1c22487e884462 to your computer and use it in GitHub Desktop.
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
<%= form_for(@post) do |f| %> | |
<%= f.collection_select(:category_id, Category.all, :id, :name, {prompt: "Choose a category" }) %><br> | |
<%= f.label :title %><br> | |
<%= f.text_field :title, placeholder: "Type the post title here" %><br> | |
<%= f.label :content %><br> | |
<%= f.text_area :content, size: "60x12", placeholder: "Type the post tect here" %><br> | |
<%= f.submit %> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment