From ced8ebcee0fa09939f82cacc59a864f5625e4bd5 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Mon, 15 Nov 2010 22:39:28 -0600 Subject: 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. --- railties/lib/rails/generators/erb/scaffold/templates/index.html.erb | 2 -- 1 file changed, 2 deletions(-) (limited to 'railties/lib/rails/generators/erb/scaffold/templates/index.html.erb') diff --git a/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb b/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb index 435d126ee4..4c46db4d67 100644 --- a/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb +++ b/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb @@ -1,4 +1,3 @@ -<% without_namespacing do -%>

Listing <%= plural_table_name %>

@@ -26,4 +25,3 @@
<%%= link_to 'New <%= human_name %>', new_<%= singular_table_name %>_path %> -<% end -%> -- cgit v1.2.3