title: How can I combine the results of different variables into one variable?
body: <p>I have following four variables in my controller index action which are retrieving data from different models as follows:</p>
  
  <pre><code>@forum = Forum.where(:user_id =&gt; @users.collect(&amp;:user_id)).all
  @poll=Poll.where(:created_by =&gt; @users.collect(&amp;:user_id)).all
  @article = Article.where(:user_id =&gt; @users.collect(&amp;:user_id)).all
  @jobpost = Jobplacement.where(:user_id =&gt; @users.collect(&amp;:user_id)).all
  </code></pre>
  
  <p>I want to join all these variables' data into a single variable <code>@post</code>. How can I do this?</p>