title: Helper to translate multiple values
body: <p>I need to make a helper that takes multiple values related to a User and translate them and return them as a string to my view.</p>
  
  <p>I was thinking about something like this:</p>
  
  <p>in the helper:</p>
  
  <pre><code>def interests(user)
    @all_interests = user.interests
    @all_interests.each_with_index do |interest|
      t('user.#{interest}') + ", "
      if index == @all_interests.size - 1
        t('user.#{interest}') + "."
      end
    end  
  </code></pre>
  
  <p>In the view:</p>
  
  <pre><code>&lt;p&gt; My interests are: &lt;%= interests(@user) %&gt; &lt;/p&gt;
  </code></pre>
  
  <p>The desired result would be for example:</p>
  
  <blockquote>
    <p>My interests are: Engineering, Sports, Gardening.</p>
  </blockquote>
  
  <p>But at this moment it returns an array like following:</p>
  
  <blockquote>
    <p>My interests are: ["Engineering", "Sports", "Gardening"]</p>
  </blockquote>
  
  <p>Edit: All the values are correctly translated in my i18n file.</p>