The server file is the gatekeeper that receives and appropriately responds to client requests based on the verb (GET, POST, DELETE, PUT) and the path present in the request.
By adding them in a hash erb(:index, :locals => {:variable => variable}) for local variables, or as instance variables s/a @variable.