The server file serves as the main point of contact between the client and the server. The server file takes in the http request from the client and routes the client to the proper page base on the verb and the path of the http request.
Instance variables are useable in the view when it is rendered. local variables you pass in using a key value hash
erb(:index, locals => { :name_in_view => name_in_server }
Using ERB (Embedded RuBy) in the server call the erb method and tell it the view you want it to render.