Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Scaffold-generated controller action gives paginate the plural_ rathe…

…r than singular_name. Closes #2743.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2879 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 8c4c196f56b2c86830ea6d64a3046103a3a43e5e 1 parent ad4e611
@jeremy jeremy authored
View
2  railties/lib/rails_generator/generators/components/scaffold/templates/controller.rb
@@ -12,7 +12,7 @@ def <%= action %><%= suffix %>
<% 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 %>
Please sign in to comment.
Something went wrong with that request. Please try again.