Sha256: 0540af1023bdca746098ee48c45abec2a361420ffd648c987ac8f1d0d0f7fa93

Contents?: true

Size: 1.09 KB

Versions: 3

Compression:

Stored size: 1.09 KB

Contents

<h1>Editing contact</h1>

<% f = form_for(@contact) %>
  <%= f.start_form %>
  <%= f.error_messages %>
  <p>
    <%= f.label :title %><br />
    <%= f.text_field :title %>
  </p>
  <p>
    <%= f.label :summary %><br />
    <%= f.text_area :summary %>
  </p>
  <p>
    <%= f.label :birthday %><br />
    <%= f.date_select :birthday %>
  </p>
  <p>
    <%= f.label :platform %><br />
    <%= f.radio_button :platform, 'Mac'   %>Mac
    <%= f.radio_button :platform, 'PC'    %>PC
    <%= f.radio_button :platform, 'Linux' %>Linux
  </p>
  <p>
    <%= f.label :editor %><br />
    <%= f.select :editor, ['Vim','Emacs','TextMate','Other'] %>
  </p>
  <p>
    <%= f.label :url %><br />
    <%= f.text_field :url, size:  '60' %>
  </p>
  <p>
    <%= f.label :address %><br />
    <%= f.text_field :address %>
  </p>
  <p>
    <%= f.label :phone %><br />
    <%= f.text_field :phone %>
  </p>
  <p>
    <%= f.label :private %><br />
    <%= f.check_box :private %>
  </p>
  <p>
    <%= f.submit 'Update' %>
  </p>
  <%= f.end_form %>

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dubious-0.0.3-java examples/contacts/app/views/contacts/edit.html.erb
dubious-0.0.2-java examples/contacts/app/views/contacts/edit.html.erb
dubious-0.0.1-java examples/contacts/app/views/contacts/edit.html.erb