title: Rails model through controller
body: <p>When creating a model function does it get seen to the controller?</p>
  
  <p>I have a model present and i have the following function</p>
  
  <pre><code>before_create :check_exists
  attr_accessible :customer_id, :event_id
  #RELATIONSHIP
    belongs_to :customer
    belongs_to :event
  
    private
      def check_exists
      present = Present.find_or_create_by_customer_id_and_event_id(:customer.id =&gt; current_customer.id, :event_id =&gt; self.event_id)
      end
  </code></pre>
  
  <p>How do I know that self.event_id is being use properly, how do i call this resource properly</p>