Created
October 5, 2012 17:37
-
-
Save chaffeqa/3841208 to your computer and use it in GitHub Desktop.
Request Specific Params Issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource :entries do | |
params do | |
requires :limit, type: Integer | |
end | |
get "/" do | |
# Code | |
end | |
params do | |
group :entry do | |
requires :name, type: String | |
end | |
end | |
post "/" do | |
# Code | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource :entries do | |
params do | |
requires :limit, type: Integer | |
end | |
get "/" do | |
# Code | |
end | |
end | |
resource :entries do | |
params do | |
group :entry do | |
requires :name, type: String | |
end | |
end | |
post "/" do | |
# Code | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment