mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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
This commit is contained in:
parent
ad4e611488
commit
8c4c196f56
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ class <%= controller_class_name %>Controller < ApplicationController
|
||||||
|
|
||||||
<% end -%>
|
<% end -%>
|
||||||
def list<%= suffix %>
|
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
|
end
|
||||||
|
|
||||||
def show<%= suffix %>
|
def show<%= suffix %>
|
||||||
|
|
Loading…
Reference in a new issue