This project is archived and is in readonly mode.

Changeset [ced8ebcee0fa09939f82cacc59a864f5625e4bd5] 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...

Committed by Piotr Sarnacki

  • 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

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>