diff options
author | José Valim <jose.valim@gmail.com> | 2009-07-01 18:33:22 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-07-02 10:27:39 +0200 |
commit | 80cd16372ce1776e5d6af87b2dc7be8205fa1513 (patch) | |
tree | f2dd35f80c6bc0f050818fe6decb30c8b2e2d3e4 /railties/lib/generators/erb/scaffold/templates/show.html.erb | |
parent | 9541977e049d236564f34cf58660b61e154ccb32 (diff) | |
download | rails-80cd16372ce1776e5d6af87b2dc7be8205fa1513.tar.gz rails-80cd16372ce1776e5d6af87b2dc7be8205fa1513.tar.bz2 rails-80cd16372ce1776e5d6af87b2dc7be8205fa1513.zip |
Added scaffold views to scaffold controller.
Diffstat (limited to 'railties/lib/generators/erb/scaffold/templates/show.html.erb')
-rw-r--r-- | railties/lib/generators/erb/scaffold/templates/show.html.erb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/railties/lib/generators/erb/scaffold/templates/show.html.erb b/railties/lib/generators/erb/scaffold/templates/show.html.erb new file mode 100644 index 0000000000..adecaf70c6 --- /dev/null +++ b/railties/lib/generators/erb/scaffold/templates/show.html.erb @@ -0,0 +1,10 @@ +<% for attribute in attributes -%> +<p> + <b><%= attribute.column.human_name %>:</b> + <%%=h @<%= singular_name %>.<%= attribute.name %> %> +</p> + +<% end -%> + +<%%= link_to 'Edit', edit_<%= singular_name %>_path(@<%= singular_name %>) %> | +<%%= link_to 'Back', <%= plural_name %>_path %>
\ No newline at end of file |