app/views/cats/new.html.erb
<h2>New cat</h2>
<%= form_for(@cat) do |f| %>
<div class="field">
<%= f.label :bio %><br>
<%= f.text_area :bio%>
</div>
<div class="field">
<%= f.label :birthday_date %><br>
<%= f.date_field :birthday_date %>
</div>
<div class="field">
<%= f.label :gender %><br>
<%= f.select(:gender, [['Male', :male], ['Female', :female]], :prompt => 'Select') %>
</div>
<div class="field">
<%= f.label :sterilized %><br>
<%= f.select(:sterilized, [['Yes', :yes], ['No', :no]], :prompt => 'Select') %>
</div>
<div class="field">
<%= f.label :abandoned_date %><br>
<%= f.date_field :abandoned_date %>
</div>
<div class="field">
<%= f.label :document %><br>
<%= f.text_field :document %>
</div>
<div class="field">
<%= f.label :colony_id %><br>
<%= f.select(:colony_id, Colony.all.collect {|u| [u.name, u.id]}, :prompt => 'Select') %>
</div>
<br/>
<div class="actions">
<%= f.submit %>
</div>
<% end %>