Sha256: 11018a3f35822bd84824fba839ba3318b10ca20bd7ae4fd9a50833b7ebc1df52

Contents?: true

Size: 711 Bytes

Versions: 107

Compression:

Stored size: 711 Bytes

Contents

<h1>Address Book</h1>

<% if @people.empty? %>
  <p>No people in the address book yet</p>
<% else %>
  <table>
    <tr><th>Name</th><th>Email Address</th><th>Phone Number</th></tr>
  <% for person in @people %>
    <tr><td><%= person.name %></td><td><%= person.email_address %></td><td><%= person.phone_number %></td></tr>
  <% end %>
  </table>
<% end %>

<form action="create_person">
  <p>
    Name:<br />
    <input type="text" name="person[name]">
  </p>

  <p>
    Email address:<br />
    <input type="text" name="person[email_address]">
  </p>

  <p>
    Phone number:<br />
    <input type="text" name="person[phone_number]">
  </p>

  <p>
    <input type="submit" value="Create Person">
  </p>
</form>

Version data entries

107 entries across 107 versions & 6 rubygems

Version Path
backlog-0.3.5 vendor/rails/actionpack/examples/address_book/index.erb
backlog-0.3.8 vendor/rails/actionpack/examples/address_book/index.erb
backlog-0.3.7 vendor/rails/actionpack/examples/address_book/index.erb
backlog-0.3.9 vendor/rails/actionpack/examples/address_book/index.erb
backlog-0.5.0 vendor/rails/actionpack/examples/address_book/index.erb
backlog-0.4.0 vendor/rails/actionpack/examples/address_book/index.erb
backlog-0.5.1 vendor/rails/actionpack/examples/address_book/index.erb
backlog-0.5.10 vendor/rails/actionpack/examples/address_book/index.erb
backlog-0.5.2 vendor/rails/actionpack/examples/address_book/index.erb
backlog-0.5.3 vendor/rails/actionpack/examples/address_book/index.erb
backlog-0.5.4 vendor/rails/actionpack/examples/address_book/index.erb
backlog-0.5.6 vendor/rails/actionpack/examples/address_book/index.erb
backlog-0.5.5 vendor/rails/actionpack/examples/address_book/index.erb
backlog-0.5.7 vendor/rails/actionpack/examples/address_book/index.erb
backlog-0.5.8 vendor/rails/actionpack/examples/address_book/index.erb
backlog-0.5.9 vendor/rails/actionpack/examples/address_book/index.erb
backlog-0.6.0 vendor/rails/actionpack/examples/address_book/index.erb
backlog-0.6.1 vendor/rails/actionpack/examples/address_book/index.erb
backlog-0.6.2 vendor/rails/actionpack/examples/address_book/index.erb
backlog-0.6.3 vendor/rails/actionpack/examples/address_book/index.erb