title: FriendlyId suggest
body: <p>I want to use FriendlyId to achieve this <code>localhost3000/users/edu/profile</code> but I do not know how to do it!
  I have these models User and UserProfile</p>
  
  <pre><code>class User &lt; ActiveRecord::Base
    has_one :user_profile, :dependent =&gt; :destroy
    extend FriendlyId
    friendly_id :name, :use =&gt; :slugged
  end  
  
  class UserProfile &lt; ActiveRecord::Base
    attr_accessible :user_id, :name, :surname, :nickname
    belongs_to :user 
  end
  </code></pre>
  
  <p>How do I load in <code>name</code> of User the <code>name</code> of UserProfile? and 
  How do you update name of User when the name of UserProfile changes?</p>
  
  <p>For the first I used </p>
  
  <pre><code>class User &lt; ActiveRecord::Base
  ...
  
    def name
      if user_profile
        "#{user_profile.name}"
      end  
    end
  </code></pre>
  
  <p>But I can't make it change when I update or create a new Profile in UserProfile.</p>
  
  <p>Using Ruby 1.9.3 and Rails 3.2.13.</p>