title: Rails: activeadmin overriding create action
body: <p>I have an activeadmin resource which has a belongs_to :user relationship.</p>
  
  <p>When I create a new Instance of the model in active admin, I want to associate the currently logged in user as the user who created the instance (pretty standard stuff I'd imagine).</p>
  
  <p>So... I got it working with:</p>
  
  <pre><code>controller do
    def create
      @item = Item.new(params[:item])
      @item.user = current_curator
      super
    end 
  end 
  </code></pre>
  
  <p>However ;)  I'm just wondering how this works?  I just hoped that assigning the @item variable the user and then calling super would work (and it does).  I also started looking through the gem but couldn't see how it was actually working.</p>
  
  <p>Any pointers would be great.  I'm assuming this is something that InheritedResources gives you?</p>
  
  <p>Thanks!</p>