diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2005-11-05 02:59:58 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2005-11-05 02:59:58 +0000 |
commit | 8c4c196f56b2c86830ea6d64a3046103a3a43e5e (patch) | |
tree | fe2c875c2c50fe7ecc3e70b8b5f4b1fad8219d7b | |
parent | ad4e6114881b124d125d28e7979e4a18e7293e2b (diff) | |
download | rails-8c4c196f56b2c86830ea6d64a3046103a3a43e5e.tar.gz rails-8c4c196f56b2c86830ea6d64a3046103a3a43e5e.tar.bz2 rails-8c4c196f56b2c86830ea6d64a3046103a3a43e5e.zip |
Scaffold-generated controller action gives paginate the plural_ rather than singular_name. Closes #2743.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2879 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | railties/lib/rails_generator/generators/components/scaffold/templates/controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails_generator/generators/components/scaffold/templates/controller.rb b/railties/lib/rails_generator/generators/components/scaffold/templates/controller.rb index 9aa33e472e..ddc03e63ba 100644 --- a/railties/lib/rails_generator/generators/components/scaffold/templates/controller.rb +++ b/railties/lib/rails_generator/generators/components/scaffold/templates/controller.rb @@ -12,7 +12,7 @@ class <%= controller_class_name %>Controller < ApplicationController <% end -%> def list<%= suffix %> - @<%= singular_name %>_pages, @<%= plural_name %> = paginate :<%= singular_name %>, :per_page => 10 + @<%= singular_name %>_pages, @<%= plural_name %> = paginate :<%= plural_name %>, :per_page => 10 end def show<%= suffix %> |