Take input from a client and figure out what to do with it (e.g. what to return, what to change on a server, what to delete, etc.)
ERB can reference an instance variable from the server file. Can also send variables as locals. In the code below the :number symbol in the :locals hash is what will be used in the erb template to reference the variable, number (not a symbol) references the number variable in the server file.
get '/' do
number = 8
erb(:index, :locals => {:number => number })
end
3. How can we interpolate ruby into a view (html)? Use use an erb template and send a message from within the server file using the erb function.
A hash called params.
Parameters that can be accessed by the server file as a hash (e.g. params[:name])
looks good