Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [ced8ebcee0fa09939f82cacc59a864f5625e4bd5] by Piotr Sarnacki

Revision ced8ebcee0fa09939f82cacc59a864f5625e4bd5, committed by Piotr Sarnacki · November 16th, 2010 @ 03:38 PM

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.
https://github.com/rails/rails/commit/ced8ebcee0fa09939f82cacc59a86...

6 changed files

  • M railties/lib/rails/generators/erb/scaffold/templates/_form.html.erb
  • M railties/lib/rails/generators/erb/scaffold/templates/edit.html.erb
  • M railties/lib/rails/generators/erb/scaffold/templates/index.html.erb
  • M railties/lib/rails/generators/erb/scaffold/templates/new.html.erb
  • M railties/lib/rails/generators/erb/scaffold/templates/show.html.erb
  • M railties/lib/rails/generators/named_base.rb