title: Trying to change values in Controller from Views
body: <p>So I am trying to create a web application in ruby rails that runs three stopwatches.</p>
  
  <pre><code>class StopwatchesController &lt; ApplicationController
  
    def index
     @string1 = "Timer 1"
     @string2 = "Timer 2"
     @string3 = "Timer 3"
     @time_1 = 0
     @time_2 = 0
     @time_3 = 0
     gon.myNum1 = @time_1
     gon.myNum2 = @time_2
     gon.myNum3 = @time_3
   end
  </code></pre>
  
  <p>I'm really new at this and am trying to make it so I can have the user edit the values for all @variables in the View component.  Sorry if anything comes off as atrocious in the code.</p>
  
  <p>edit: I got read the comments about me not being clear, my bad guys and thanks for the feedback (:
  So in my <code>app\views\stopwatches\index.html.erb</code> I have the following code:</p>
  
  <pre><code>  &lt;h4&gt;&lt;%= @string1 %&gt;&lt;/h4&gt;&lt;br&gt;
    &lt;div class="clock_1"&gt;
    &lt;script type="text/javascript"&gt;
      var clock = $('.clock_1').FlipClock(gon.myNum1, {
      countdown: true,
          clockFace: 'MinuteCounter',
      });
  </code></pre>
  
  <p><br>
  This is pretty much a gem for one of the clocks, where <code>@string1</code> is the name given by the user while <code>gon.myNum1</code> will be a numerical value for the time.  My problem is pretty much that I don't know how to create a page or form that can have the user change the contents of the variable mentioned.</p>