Populate edit fields with default values.

This commit is contained in:
Roland 2011-07-12 23:37:19 +02:00
parent 265a87dc07
commit 8c89652fbb

View file

@ -50,9 +50,9 @@
<tr>
<td align="right"><%= label_tag(:birth_date, "Birthday") %></td>
<td>
<%= select_tag(:birth_day, options_for_select(@days)) %>
<%= select_tag(:birth_month, options_for_select(@months)) %>
<%= text_field_tag(:birth_year, nil, :placeholder => "Jahr") %>
<%= select_tag(:birth_day, options_for_select(@days, @contact.birth_day)) %>
<%= select_tag(:birth_month, options_for_select(@months, @contact.birth_month)) %>
<%= text_field(:contact, :birth_year, :placeholder => "Jahr") %>
</td>
</tr>
<tr>