diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-11-15 22:39:28 -0600 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2010-11-16 16:38:14 +0100 |
commit | ced8ebcee0fa09939f82cacc59a864f5625e4bd5 (patch) | |
tree | f22ee935f16c887c16003e66236e051e19cf7df4 /railties/lib/rails/generators/erb/scaffold/templates/show.html.erb | |
parent | a820d0afdd4a09e0902d7b7c4d9724f50089d254 (diff) | |
download | rails-ced8ebcee0fa09939f82cacc59a864f5625e4bd5.tar.gz rails-ced8ebcee0fa09939f82cacc59a864f5625e4bd5.tar.bz2 rails-ced8ebcee0fa09939f82cacc59a864f5625e4bd5.zip |
Change inside_namespace method to inside_template and use it in all templates by default
The initial implementation of namespacing was based on wrong
assumptions. Namespacing path and class names in templates
should be based on current namespace and skip_namespace attribute,
but it should be not necessary to wrap content on all the templates
into additional block methods.
Diffstat (limited to 'railties/lib/rails/generators/erb/scaffold/templates/show.html.erb')
-rw-r--r-- | railties/lib/rails/generators/erb/scaffold/templates/show.html.erb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/erb/scaffold/templates/show.html.erb b/railties/lib/rails/generators/erb/scaffold/templates/show.html.erb index bc3a87b99f..c0e5ccff1e 100644 --- a/railties/lib/rails/generators/erb/scaffold/templates/show.html.erb +++ b/railties/lib/rails/generators/erb/scaffold/templates/show.html.erb @@ -1,4 +1,3 @@ -<% without_namespacing do -%> <p id="notice"><%%= notice %></p> <% for attribute in attributes -%> @@ -11,4 +10,3 @@ <%%= link_to 'Edit', edit_<%= singular_table_name %>_path(@<%= singular_table_name %>) %> | <%%= link_to 'Back', <%= index_helper %>_path %> -<% end -%> |