Sha256: 806a53dbb2e47e7bac47b8696a4a429efdd235ee09a878b7276ca06e560a6115

Contents?: true

Size: 803 Bytes

Versions: 15

Compression:

Stored size: 803 Bytes

Contents

<% title "Users" %>

<p>
  This demo app shows how <a href="https://github.com/fiedl/edit_mode" target="_blank">edit_mode</a> looks like.
</p>
<p>
  Just go to the 'show' page of a user and edit his profile there. (If no user exists, you will have to create one first.)
</p>


<table>
  <tr>
    <th>First Name</th>
    <th>Last Name</th>
    <th>Date Of Birth</th>
  </tr>
  <% for user in @users %>
    <tr>
      <td><%= user.first_name %></td>
      <td><%= user.last_name %></td>
      <td><%= user.date_of_birth %></td>
      <td><%= link_to "Show", user %></td>
      <td><%= link_to "Edit", edit_user_path(user) %></td>
      <td><%= link_to "Destroy", user, :confirm => 'Are you sure?', :method => :delete %></td>
    </tr>
  <% end %>
</table>

<p><%= link_to "New User", new_user_path %></p>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
edit_mode-1.0.5 test_app/app/views/users/index.html.erb
edit_mode-1.0.4 test_app/app/views/users/index.html.erb
edit_mode-1.0.3 test_app/app/views/users/index.html.erb
edit_mode-1.0.2 test_app/app/views/users/index.html.erb
edit_mode-1.0.1 test_app/app/views/users/index.html.erb
edit_mode-1.0.0 test_app/app/views/users/index.html.erb
edit_mode-0.0.9 test_app/app/views/users/index.html.erb
edit_mode-0.0.8 test_app/app/views/users/index.html.erb
edit_mode-0.0.7 test_app/app/views/users/index.html.erb
edit_mode-0.0.6 test_app/app/views/users/index.html.erb
edit_mode-0.0.5 test_app/app/views/users/index.html.erb
edit_mode-0.0.4 test_app/app/views/users/index.html.erb
edit_mode-0.0.3 test_app/app/views/users/index.html.erb
edit_mode-0.0.2 test_app/app/views/users/index.html.erb
edit_mode-0.0.1 test_app/app/views/users/index.html.erb