katzer / mruby-shelf

Modular webserver interface for mruby
MIT License
25 stars 5 forks source link

Fixed broken example #2

Closed genya0407 closed 2 years ago

genya0407 commented 2 years ago

If we pass Symbol as map's second argument, we get following exception.

can't convert Symbol to Integer (TypeError)

It seems that we cannot use Symbol, and should use Integer (maybe we could in the past?).

So I fixed the example to use get method, instead of using map .

katzer commented 2 years ago

yes, it should be an int like R3::GET instead of :GET

katzer commented 2 years ago

thanks!