title: Rails - How to add an object to a variable
body: <p>I would like to make something like this:</p>
  
  <pre><code>@profiles
  #(I think in Java, so I have declared an @profiles variable there! I know it's probably wrong!)
  @users.each do |user|
    profile = Profile.find(params[user.id])
    @profiles.add(profile)
  end
  </code></pre>
  
  <p>The user and profile have a one-to-one relationship.</p>
  
  <p>user has one profile, 
  profile belongs to user</p>