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
actionpack-1.11.0 examples/address_book/index.rhtml
actionpack-1.12.5 examples/address_book/index.rhtml
actionpack-1.12.4 examples/address_book/index.rhtml
actionpack-1.12.3 examples/address_book/index.rhtml
actionpack-1.12.2 examples/address_book/index.rhtml
actionpack-1.13.0 examples/address_book/index.rhtml
actionpack-1.13.4 examples/address_book/index.rhtml
actionpack-1.13.1 examples/address_book/index.rhtml
actionpack-1.13.3 examples/address_book/index.rhtml
actionpack-1.13.2 examples/address_book/index.rhtml
actionpack-1.13.5 examples/address_book/index.rhtml
actionpack-1.13.6 examples/address_book/index.rhtml
actionpack-1.3.0 examples/address_book/index.rhtml
actionpack-1.3.1 examples/address_book/index.rhtml
actionpack-1.2.0 examples/address_book/index.rhtml
actionpack-1.4.0 examples/address_book/index.rhtml
actionpack-1.5.0 examples/address_book/index.rhtml
actionpack-1.9.1 examples/address_book/index.rhtml
actionpack-1.7.0 examples/address_book/index.rhtml
actionpack-1.8.0 examples/address_book/index.rhtml