Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple typos in documentation #74

Closed
pboling opened this issue May 23, 2016 · 0 comments
Closed

Multiple typos in documentation #74

pboling opened this issue May 23, 2016 · 0 comments

Comments

@pboling
Copy link
Member

pboling commented May 23, 2016

      # @example
      #   class User
      #     include Dynamoid::Document
      #     field :email,          :string
      #     field :age,            :integer
      #     field :gender,         :string
      #     field :rank            :number
      #     table :key => :email
      #     global_secondary_index :hash_key => :age, :range_key => :gender
      #   end
      #   User.find_all_by_secondary_index(:age => 5, :range => {"rank.lte" => 10})
  1. The :range_key => :gender should instead be :range_key => :rank.
  2. Curly braces are required around the first hash param in:
    User.find_all_by_secondary_index(:age => 5, :range => {"rank.lte" => 10}), as
    User.find_all_by_secondary_index({:age => 5}, :range => {"rank.lte" => 10})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant