intridea/grape — pull request #195 by ppadron (2012-07-03 06:16:42+00:00)
Title: Updating "Describing and Inspecting an API" to reflect actual behavior

In the current example, parameters are listed with an array instead of hash:

``` ruby
get "split/:string", { :params => [ "token" ], :optional_params => [ "limit" ] } do
```

However, it throws the following error: TypeError: can't convert Array into Hash

I have updated the example to use hashes and added a sample helper that performs parameter checking based on the provided information.