The server is a file that allows the receiver and the responder to give and get the proper out put based on the verb (POST, GET, PUT, DELETE) and the path. Whatever you put in your server file determines what the client gets back.
The variable that you are trying to pass needs to be considered in the “Get block” erb represents the file that you want to view
Example;
get ‘/’ do @something = one thing erb: index end
this erb(index would be based on what you would want to pass in; erb (:index, :local =>{@something = one thing}
<% ruby_code_here%> or <%= ruby_code_here%> the = represents what will be projected on web(from Server to View). You would not want to use the = for conditions, if/else, when, whiles, etc.
Data submitted by users in a form comes in as a hash called “params”.
looks good.