Editing contact

<% f = form_for(@contact) %> <%= f.start_form %> <%= f.error_messages %>

<%= f.label :title %>
<%= f.text_field :title %>

<%= f.label :summary %>
<%= f.text_area :summary %>

<%= f.label :birthday %>
<%= f.date_select :birthday %>

<%= f.label :platform %>
<%= f.radio_button :platform, 'Mac' %>Mac <%= f.radio_button :platform, 'PC' %>PC <%= f.radio_button :platform, 'Linux' %>Linux

<%= f.label :editor %>
<%= f.select :editor, ['Vim','Emacs','TextMate','Other'] %>

<%= f.label :url %>
<%= f.text_field :url, :size => '60' %>

<%= f.label :address %>
<%= f.text_field :address %>

<%= f.label :phone %>
<%= f.text_field :phone %>

<%= f.label :private %>
<%= f.check_box :private %>

<%= f.submit 'Update' %>

<%= f.end_form %> <%= link_to 'Show', resource(@contact, :show) %> | <%= link_to 'Back', resource(:contacts) %>