title: Ruby on Rails Complex Form
body: <p>Controller</p>
  
  <pre><code>    def create
          radgroup1 = Radgroup.new(groupname: radgroup_params[:groupname],
                                   attribute: "MaxTimeLimit",
                                   op:        ":=",
                                   value:     radgroup_params[:time])
  
          radgroup2 = Radgroup.new(groupname: radgroup_params[:groupname],
                                   attribute: "MaxDownLimit",
                                   op:        ":=",
                                   value:     radgroup_params[:downlimit])
  
          radgroup3 = Radgroup.new(groupname: radgroup_params[:groupname],
                                   attribute: "MaxUpLimit",
                                   op:        ":=",
                                   value:     radgroup_params[:uplimit])
  
          respond_to do |format|
              if radgroup1.save &amp;&amp; radgroup2.save &amp;&amp; radgroup3.save
  </code></pre>
  
  <p>And here is form:</p>
  
  <pre><code>    &lt;%= form_tag "/radgroup_controller/create" do %&gt;
        &lt;%= text_field_tag "groupname", "default info" %&gt;
        &lt;%= text_field_tag "time", "default info" %&gt;
        &lt;%= text_field_tag "downlimit", "default info" %&gt;
        &lt;%= text_field_tag "uplimit", "default info" %&gt;
        &lt;%= submit_tag "Save" %&gt;
      &lt;% end %&gt;
  </code></pre>
  
  <p>According to this structure, I can not do the index page. Can you help me?</p>
  
  <p><a href="https://i.stack.imgur.com/g4hyX.jpg" rel="nofollow noreferrer">existing index page</a></p>
  
  <p>index page I want, as in the picture</p>
  
  <p><a href="https://i.stack.imgur.com/X1gW6.jpg" rel="nofollow noreferrer">index page</a></p>