Last active
October 24, 2016 04:41
-
-
Save karuna24s/99b79e3996168b9dc71ce8d6da58e5aa 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(@destination) do |destination_builder| %> | |
<%= render 'shared/error_messages' %> | |
<p> | |
<%= destination_builder.label :title %> | |
<%= destination_builder.text_field :title, class: 'form-control' %><br> | |
</p> | |
<p> | |
<%= destination_builder.label :location %> | |
<%= destination_builder.text_field :location, class: 'form-control' %><br> | |
</p> | |
<%= destination_builder.fields_for :food do |food_builder| %> | |
<p><strong>Food Name</strong> <%= food_builder.text_field :name, class: 'form-control' %><br></p> | |
<p><strong>Type of Food</strong> <%= food_builder.text_field :category, class: 'form-control' %><br></p> | |
<% end %> | |
<p> | |
<%= destination_builder.label :content %> | |
<%= destination_builder.text_area :content, rows: 10, class: 'form-control' %><br> | |
</p> | |
<p><strong>Recommendations</strong><%= destination_builder.text_field :recommendation, class: 'form-control' %><br></p> | |
<%= destination_builder.submit "Create Story", class: "btn btn-md btn-primary" %> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment