mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
[skip ci]fix grammatical-mistakes-and-typo
This commit is contained in:
parent
73b93405b9
commit
3ae5aa9682
3 changed files with 7 additions and 7 deletions
|
@ -59,7 +59,7 @@ module Kaminari
|
|||
refine ::ActiveRecord::Relation do
|
||||
private
|
||||
|
||||
# Update multiple instance variables that holds `limit` to a given value
|
||||
# Update multiple instance variables that hold `limit` to a given value
|
||||
def set_limit_value(new_limit)
|
||||
@values[:limit] = new_limit
|
||||
|
||||
|
|
|
@ -4,14 +4,14 @@ module Kaminari
|
|||
module Helpers
|
||||
|
||||
# The Kaminari::Helpers::UrlHelper module provides useful methods for
|
||||
# generating a path or url to a particlar page. A class must implement the
|
||||
# generating a path or url to a particular page. A class must implement the
|
||||
# following methods:
|
||||
#
|
||||
# * <tt>url_for</tt>: A method that generates an actual path
|
||||
# * <tt>params</tt>: A method that returns query string parameters
|
||||
# * <tt>request</tt>: A method that returns a Rack::Request object
|
||||
#
|
||||
# A normal Rails controller implements all the methods, which makes it
|
||||
# A normal Rails controller implements all the methods, which make it
|
||||
# trivial to use this module:
|
||||
#
|
||||
# ==== Examples
|
||||
|
@ -20,10 +20,10 @@ module Kaminari
|
|||
# include Kaminari::Helpers::UrlHelper
|
||||
#
|
||||
# def index
|
||||
# @users = User.page(1)
|
||||
# @users = User.page(1)
|
||||
#
|
||||
# path_to_next_page(@items)
|
||||
# # => /items?page=2
|
||||
# path_to_next_page(@items)
|
||||
# # => /items?page=2
|
||||
# end
|
||||
# end
|
||||
#
|
||||
|
|
|
@ -13,7 +13,7 @@ module Kaminari
|
|||
# class, so _tag partial is not needed).
|
||||
# e.g.) PrevLink -> app/views/kaminari/_prev_link.html.erb
|
||||
#
|
||||
# When no matching template were found in your app, the engine's pre
|
||||
# When no matching templates were found in your app, the engine's pre
|
||||
# installed template will be used.
|
||||
# e.g.) Paginator -> $GEM_HOME/kaminari-x.x.x/app/views/kaminari/_paginator.html.erb
|
||||
class Tag
|
||||
|
|
Loading…
Reference in a new issue