Skip to content

Commit

Permalink
Update scaffolding [#1840 state:committed]
Browse files Browse the repository at this point in the history
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
  • Loading branch information
Mike Gunderloy authored and dhh committed Feb 5, 2009
1 parent 46288f5 commit 44f02de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -2,7 +2,7 @@ class <%= controller_class_name %>Controller < ApplicationController
# GET /<%= table_name %>
# GET /<%= table_name %>.xml
def index
@<%= table_name %> = <%= class_name %>.find(:all)
@<%= table_name %> = <%= class_name %>.all

respond_to do |format|
format.html # index.html.erb
Expand Down
Expand Up @@ -7,7 +7,7 @@
<% end -%>
</tr>

<%% for <%= singular_name %> in @<%= plural_name %> %>
<%% @<%= plural_name %>.each do |<%= singular_name %>| %>
<tr>
<% for attribute in attributes -%>
<td><%%=h <%= singular_name %>.<%= attribute.name %> %></td>
Expand Down

0 comments on commit 44f02de

Please sign in to comment.