title: Null input params using ruby on rails
body: <p>I have a question about how to receive an input param from my view because it's always NULL.</p>
  
  <p>This is the controller:</p>
  
  <pre><code>if session[:usuario_id]                 
    cpusuario = Usuario.new
    cpusuario.user = params[:correo]
    cpusuario.ldap = 1
    cpusuario.activo = 1
    cpusuario.tipo = "Docente"
    cpusuario.save
    redirect_to controller:"secretarias", action: "index"
  else
    redirect_to controller:"forminst", action: "index"
  end
  </code></pre>
  
  <p>This is the view:</p>
  
  <pre><code>&lt;input type="text" name="correo" class="form-control" required&gt;
  </code></pre>