提交 8c4c196f 编写于 作者: J Jeremy Kemper

Scaffold-generated controller action gives paginate the plural_ rather than...

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
上级 ad4e6114
......@@ -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 %>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册