title: belongs_to and has_many to the same model
body: <p>I am wondering whether there is a way to do this with rails or not. Basically I have a user model and an event model. Event is created by a user and I want to have a foreign key (user_id) in the event model that indicates who created the event. Additionally, event can have many users who attend it so the event model becomes something like</p>
  
  <pre><code>belongs_to :user
  has_many :users, :through =&gt; :guests #suppose i have the guest model 
  </code></pre>
  
  <p>and the user model looks something like</p>
  
  <pre><code>has_many :events, :through =&gt; :guests
  </code></pre>
  
  <p>I have not tried this association yet but I want to be able to say</p>
  
  <pre><code>e = Event.find(1)
  e.creator #returns the user who created this event
  </code></pre>
  
  <p>instead of </p>
  
  <pre><code>e.user
  </code></pre>
  
  <p>is there a way for me to do this? </p>