<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -73,9 +73,9 @@ protected
     redirect_to clean_dashboard_url if dashboard_subdomain.nil?
   end
 
-  def clean_dashboard_url(permalink=nil)
+  def clean_dashboard_url(user=nil)
     home_permalink = request.subdomains.empty? ? current_user.home.permalink : request.subdomains.first
-    home_permalink = permalink unless permalink.nil? # overwrite fu
+    home_permalink = (user.is_a?(User) ? user.home.permalink : user ) unless user.nil? # overwrite fu
     protocol + home_permalink + &quot;.&quot; + request.host + request.port_string
   end
 </diff>
      <filename>dashboard_location/lib/dashboard_location.rb</filename>
    </modified>
    <modified>
      <diff>@@ -34,4 +34,24 @@ namespace :rename do
       &quot;
     end
   end
+  
+  task :model do
+    if ENV['FROM'].nil?
+      puts &quot;Please specify the original controller name, like so: from=todo&quot; and return if ENV['from'].nil?      
+    elsif ENV['TO'].nil?
+      puts &quot;Please specify the original controller name, like so: to=tasks&quot; and return if ENV['to'].nil?      
+    elsif ENV['FROM'] == ENV['TO']
+      puts &quot;To and from are the same&quot;
+    else
+      require 'fileutils'
+      from = ENV['FROM'].downcase
+      to = ENV['TO'].downcase
+      puts &quot;Renaming the model file&quot;
+      mv(&quot;app/models/#{from}.rb&quot;, &quot;app/models/#{to}.rb&quot;)
+      mv(&quot;test/unit/#{from}_test.rb&quot;, &quot;test/unit/#{to}_test.rb&quot;)
+      mv(&quot;test/fixtures/#{from}_test.rb&quot;, &quot;test/unit/#{to}_test.rb&quot;) # need to work out how to use inflectors and thus pluralize
+      # create  test/fixtures/foos.yml
+      # create  db/migrate/002_create_foos.rb      
+    end 
+  end
 end
\ No newline at end of file</diff>
      <filename>sake_recipes/rename.sake</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>bf6ea296011a9a9cd3cb480945949ce877108da3</id>
    </parent>
  </parents>
  <author>
    <name>Zach Inglis</name>
    <email>zach@lt3media.com</email>
  </author>
  <url>http://github.com/zachinglis/rails-plugins/commit/57aa00cf3a4790fbbaabccb1aaa52136598c2496</url>
  <id>57aa00cf3a4790fbbaabccb1aaa52136598c2496</id>
  <committed-date>2008-03-03T19:38:53-08:00</committed-date>
  <authored-date>2008-03-03T19:38:53-08:00</authored-date>
  <message>You can now pass a User hash into clean_dashboard_url</message>
  <tree>287bed33ec8f1639671bd1e68353300041a605c3</tree>
  <committer>
    <name>Zach Inglis</name>
    <email>zach@lt3media.com</email>
  </committer>
</commit>
