The server file takes in the requests from clients and calls on the appropriate logic/views to send back a response to the client.
You can pass instance variables, or you can pass a local variable by passing it via :locals in erb.
<%= code = 8 %> is code that is shown
<% code = 8 %> is code that is executed but does not show the result in the view
hash, params
they are hashes that hold the send/receive data
its important to note that for 3.) you will pass a variable - code - through to the view that has a value of 8. So in the view you would only need <%= code %> or < % code %>