concept method in category scalatra

appears as: methods, methods, method, The method, method, The methods
Scalatra in Action

This is an excerpt from Manning's book Scalatra in Action.

Now that you have some pages stored, you need a way to retrieve them. Scalatra is an implementation of Ruby’s Sinatra DSL in Scala, and when it comes to dealing with HTTP, it looks almost identical to Sinatra. You make methods available over HTTP by setting up routes, and you execute code, called actions, inside the routes.

Now that you understand the syntax of a route, let’s go into detail about how to define it. We’ll start with a discussion of methods.