title: Ruby on Rails Activemodel with Associations
body: <p>Acutally i face some hard exercises in computer science (hard for me i think, haha).</p>
  
  <p>We're doing some basic stuff with Ruby on Rails an i have to open a csv file to get additional information on my 'User' model which is a normal rails scaffold.</p>
  
  <p>So at the moment i open the csv file in my users_controller.rb file and search for the right row an add them to an instance variable.</p>
  
  <p>But i wonder if i can write a class that acts like an ActiveRecord Model. So i change the code to use ActiveModel. But as i read in some google results, ActiveModel can't make use of ActiveRecord like associations. But it would great to have them.</p>
  
  <p>So i hope you can help me. How can i provide my model with ActiveRecors like associations?</p>
  
  <p>Greetings
  Melanie</p>