Skip to content

Commit

Permalink
Updated validation documentation to correctly reflect requires method
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgotterer committed Jul 18, 2012
1 parent e20d7d8 commit dc7dad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ You can define validations and coercion options for your parameters:

```ruby
params do
required :id, type: Integer
requires :id, type: Integer
optional :name, type: String, regexp: /^[a-z]+$/
end
get ':id' do
Expand Down

0 comments on commit dc7dad6

Please sign in to comment.