diff options
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..24f13fc0f8 --- /dev/null +++ b/railties/lib/generators/erb/scaffold/templates/show.html.erb @@ -0,0 +1,10 @@ +<% for attribute in attributes -%> +<p> + <b><%= attribute.human_name %>:</b> + <%%= @<%= singular_name %>.<%= attribute.name %> %> +</p> + +<% end -%> + +<%%= link_to 'Edit', edit_<%= singular_name %>_path(@<%= singular_name %>) %> | +<%%= link_to 'Back', <%= plural_name %>_path %> |