title: how can I display controller's variable (which is on a loop) on .html.erb page? ruby on rails
body: <p>I have the following code listed below in my controller:</p>
  
  <pre><code>struc = {'en' =&gt; 'english', 'es' =&gt; 'espaniol', 'de' =&gt; 'germany', 'fr' =&gt; 'french', 'it' =&gt; 'italy'}
  struc.each_pair do |key, value|
    @key=key
    @value=value
  end
  </code></pre>
  
  <p>on my application.html.erb I have the following</p>
  
  <pre><code>&lt;select name="Language" onchange="location=this.options[this.selectedIndex].value;"&gt;
      &lt;option value="/&lt;% @key %&gt;/&lt;%= @rem %&gt;"&gt;&lt;%= @value %&gt;&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>Now how can i make the value of '@key' and '@value' appear recursively display on   (application.html.erb)?</p>
  
  <p><strong>Also How can I change its styling i.e. make the value appear smaller, tucked in nicely??</strong></p>
  
  <p>Thanks in advance </p>