Acts as a gateway. Takes request and parses any logic and displays, renders or redirects as code indicates.
Variables can be passed into views by setting instance variables or sending local variables that can be referenced in your erb view files respectively.
Use Embedded RuBy/erb tags which will interpret ruby an send back pure HTML to client. <%=ruby_code_here%>
Data comes in as a hash called params
data, in the form of a hash, that comes in from a view/form representing key to access/define a variable
Not all the key/value pairs in the params hash will be from a form, but yes data from a from will also be passed through in the params hash