Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
<!-- entries/_form.html.erb -->
<div>
<%= simple_form_for(@entry) do |f| %>
<%= f.error_notification %>
<div>
<div>
<div>
<%= f.input :distance, hint: "In Kilometers." %>
</div>
<div>
<%= f.input :time_period, hint: "In Minutes." %>
</div>
<div>
<%= f.input :date_time %>
</div>
<div>
<%= f.input :status_weather,
collection: Entry::STATUS[:weather], selected: 1
%>
</div>
<div>
<%= f.input :status_landform,
collection: Entry::STATUS[:landform], selected: 1
%>
</div>
</div>
</div>
<br/>
<div>
<%= f.button :submit %>
</div>
<% end %>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment