Class Rack::MatrixParams
In: lib/sinatra/rack_matrix_params.rb
Parent: Object

Methods

call   new  

Public Class methods

Public Instance methods

This will allow to use ‘matrix’ params in requests, like:

example.com/library;section=nw/books;topic=money;binding=hardcover

Will result in this params matrix:

> params[‘library’][‘section’] = ‘nw‘

> params[‘books’][‘topic’] = ‘money‘

> params[‘books’][‘binding’] = ‘hardcover‘

All HTTP methods are supported, in case of POST they will be passed as a regular <form> parameters.

[Validate]