diff options
Diffstat (limited to 'actionpack/README')
-rwxr-xr-x | actionpack/README | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/README b/actionpack/README index de50e28177..72f0f6241a 100755 --- a/actionpack/README +++ b/actionpack/README @@ -391,23 +391,23 @@ request from the web-server (like to be Apache). And the templates look like this: - weblog/layout.rhtml: + weblog/layout.erb: <html><body> <%= yield %> </body></html> - weblog/index.rhtml: + weblog/index.erb: <% for post in @posts %> <p><%= link_to(post.title, :action => "display", :id => post.id %></p> <% end %> - weblog/display.rhtml: + weblog/display.erb: <p> <b><%= post.title %></b><br/> <b><%= post.content %></b> </p> - weblog/new.rhtml: + weblog/new.erb: <%= form "post" %> This simple setup will list all the posts in the system on the index page, |