From 21187c0fb4fc559927a2f947f909dedd85969ffb Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 21 Feb 2007 00:29:44 +0000 Subject: Apply the rest of Chads patch git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6180 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/examples/address_book/index.erb | 33 +++++++++++++++++++++++++++++ actionpack/examples/address_book/layout.erb | 8 +++++++ 2 files changed, 41 insertions(+) create mode 100644 actionpack/examples/address_book/index.erb create mode 100644 actionpack/examples/address_book/layout.erb (limited to 'actionpack/examples/address_book') diff --git a/actionpack/examples/address_book/index.erb b/actionpack/examples/address_book/index.erb new file mode 100644 index 0000000000..217d39075c --- /dev/null +++ b/actionpack/examples/address_book/index.erb @@ -0,0 +1,33 @@ +

Address Book

+ +<% if @people.empty? %> +

No people in the address book yet

+<% else %> + + + <% for person in @people %> + + <% end %> +
NameEmail AddressPhone Number
<%= person.name %><%= person.email_address %><%= person.phone_number %>
+<% end %> + +
+

+ Name:
+ +

+ +

+ Email address:
+ +

+ +

+ Phone number:
+ +

+ +

+ +

+
\ No newline at end of file diff --git a/actionpack/examples/address_book/layout.erb b/actionpack/examples/address_book/layout.erb new file mode 100644 index 0000000000..931e141c01 --- /dev/null +++ b/actionpack/examples/address_book/layout.erb @@ -0,0 +1,8 @@ + + + <%= @title || "Untitled" %> + + +<%= @content_for_layout %> + + \ No newline at end of file -- cgit v1.2.3