Re-namespacing a bit to clear out some fairly old stuff from the top level

This commit is contained in:
Dan Buch
2013-01-22 19:10:10 -05:00
parent ab43fb0146
commit 92f7543872
485 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<title>Gerbil</title>
<%= stylesheet_link_tag "application" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
</head>
<body>
<%= yield %>
</body>
</html>

View File

@@ -0,0 +1,29 @@
<%= form_for(@person) do |f| %>
<% if @person.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@person.errors.count, "error") %> prohibited this person from being saved:</h2>
<ul>
<% @person.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="field">
<%= f.label :name %><br />
<%= f.text_field :name %>
</div>
<div class="field">
<%= f.label :age %><br />
<%= f.number_field :age %>
</div>
<div class="field">
<%= f.label :zipcode %><br />
<%= f.text_field :zipcode %>
</div>
<div class="actions">
<%= f.submit %>
</div>
<% end %>

View File

@@ -0,0 +1,6 @@
<h1>Editing person</h1>
<%= render 'form' %>
<%= link_to 'Show', @person %> |
<%= link_to 'Back', people_path %>

View File

@@ -0,0 +1,27 @@
<h1>Listing people</h1>
<table>
<tr>
<th>Name</th>
<th>Age</th>
<th>Zipcode</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @people.each do |person| %>
<tr>
<td><%= person.name %></td>
<td><%= person.age %></td>
<td><%= person.zipcode %></td>
<td><%= link_to 'Show', person %></td>
<td><%= link_to 'Edit', edit_person_path(person) %></td>
<td><%= link_to 'Destroy', person, :confirm => 'Are you sure?', :method => :delete %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New Person', new_person_path %>

View File

@@ -0,0 +1,5 @@
<h1>New person</h1>
<%= render 'form' %>
<%= link_to 'Back', people_path %>

View File

@@ -0,0 +1,20 @@
<p id="notice"><%= notice %></p>
<p>
<b>Name:</b>
<%= @person.name %>
</p>
<p>
<b>Age:</b>
<%= @person.age %>
</p>
<p>
<b>Zipcode:</b>
<%= @person.zipcode %>
</p>
<%= link_to 'Edit', edit_person_path(@person) %> |
<%= link_to 'Back', people_path %>