From e1056530665d5c8eed2c325157fbb88553eb2678 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 20 Feb 2007 22:09:12 +0000 Subject: Added .erb and .builder as preferred aliases to the now deprecated .rhtml and .rxml extensions [Chad Fowler]. This is done to separate the renderer from the mime type. .erb templates are often used to render emails, atom, csv, whatever. So labeling them .rhtml doesn't make too much sense. The same goes for .rxml, which can be used to build everything from HTML to Atom to whatever. .rhtml and .rxml will continue to work until Rails 3.0, though. So this is a slow phasing out. All generators and examples will start using the new aliases, though. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6178 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/examples/address_book/index.rhtml | 33 --------------------------- actionpack/examples/address_book/layout.rhtml | 8 ------- actionpack/examples/debate/index.rhtml | 14 ------------ actionpack/examples/debate/new_topic.rhtml | 22 ------------------ actionpack/examples/debate/topic.rhtml | 32 -------------------------- 5 files changed, 109 deletions(-) (limited to 'actionpack/examples') diff --git a/actionpack/examples/address_book/index.rhtml b/actionpack/examples/address_book/index.rhtml index 217d39075c..e69de29bb2 100644 --- a/actionpack/examples/address_book/index.rhtml +++ b/actionpack/examples/address_book/index.rhtml @@ -1,33 +0,0 @@ -

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.rhtml b/actionpack/examples/address_book/layout.rhtml index 931e141c01..e69de29bb2 100644 --- a/actionpack/examples/address_book/layout.rhtml +++ b/actionpack/examples/address_book/layout.rhtml @@ -1,8 +0,0 @@ - - - <%= @title || "Untitled" %> - - -<%= @content_for_layout %> - - \ No newline at end of file diff --git a/actionpack/examples/debate/index.rhtml b/actionpack/examples/debate/index.rhtml index ddaa87da57..e69de29bb2 100644 --- a/actionpack/examples/debate/index.rhtml +++ b/actionpack/examples/debate/index.rhtml @@ -1,14 +0,0 @@ - - -

Topics

- -<%= link_to "New topic", :action => "new_topic" %> - - - - - \ No newline at end of file diff --git a/actionpack/examples/debate/new_topic.rhtml b/actionpack/examples/debate/new_topic.rhtml index f52a69cc31..e69de29bb2 100644 --- a/actionpack/examples/debate/new_topic.rhtml +++ b/actionpack/examples/debate/new_topic.rhtml @@ -1,22 +0,0 @@ - - -

New topic

- -
" method="post"> -

- Title:
- -

- -

- Body:
- -

- -

- -

-
- - - \ No newline at end of file diff --git a/actionpack/examples/debate/topic.rhtml b/actionpack/examples/debate/topic.rhtml index e247c00f0d..e69de29bb2 100644 --- a/actionpack/examples/debate/topic.rhtml +++ b/actionpack/examples/debate/topic.rhtml @@ -1,32 +0,0 @@ - - -

<%= @topic.title %>

- -

<%= @topic.body %>

- -<%= link_to "Back to topics", :action => "index" %> - -<% unless @topic.replies.empty? %> -

Replies

-
    - <% for reply in @topic.replies %> -
  1. <%= reply.body %>
  2. - <% end %> -
-<% end %> - -

Reply to this topic

- -
" method="post"> - -

- -

- -

- -

-
- - - \ No newline at end of file -- cgit v1.2.3