KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Using the following Sinatra app get '/app' do content_type :json {"params" => params}.to_json end Invoking: /app?param1=one¶m2=two¶m2=alt Gives the following result: {"params":{"param1":"one","param2":"alt"}} Params has only two keys, param1 & param2. I understand Sinatra is setting params as a hash, but it does not represent all of the URL request. Is there a way in Sinatra to get a list of all URL parameters sent in the request?
Tags (comma-separated)
Save Edits
Cancel