according to http://www.sinatrarb.com/intro.html#Request/Instance%20Scope
You have the request scope binding inside:
- get, head, post, put, delete, options, patch, link, and unlink blocks
- before and after filters
- helper methods
- templates/views
is there any shortcut to do everything exactly the same despite of methods?
get // do
# do something
end
post // do
# do something exactly the same as previous
end
put // do
# do something exactly the same as previous
end
delete // do
# do something exactly the same as previous
end
...