Skip to content

Instantly share code, notes, and snippets.

@eqbal
Created December 6, 2016 13:03
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save eqbal/10ce8bb6aafc3b84ee4580b89702b163 to your computer and use it in GitHub Desktop.
<!-- 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