title: Rails 4 Strong Parameters with delegate
body: <p>I am trying to receive the parameters as being from Celeb model and delegate the right ones to user:</p>
  
  <pre><code>class Celeb &lt; ActiveRecord::Base
  
    has_one :user, as: :role, dependent: :destroy
  
    delegate :name, :username, :email, :password, :password_confirmation, :name=, :username=, :email=, :password=, :password_confirmation=, to: :user
  end
  </code></pre>
  
  <p>In controller:</p>
  
  <pre><code>def create
      @celeb = mount_celeb()
      @celeb.assign_attributes celeb_params
      ...
  
    end
  
  def celeb_params
      params.require(:celeb).permit(:email, :username, :name, :password, :password_confirmation)
  end
  
  def mount_celeb
      celeb = Celeb.new
      celeb.build_user
      celeb
    end
  </code></pre>
  
  <p>But the associated user remains empty with no fields assigned. Is there a way to achieve this using strong parameters?</p>