<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,20 +1,18 @@
-desc &quot;provides example field partials (with and without errors) to app/views/forms&quot;
+desc &quot;copies basic form templates to app/views/forms&quot;
 namespace :form_assistant do
   task :install do
-    RAILS_ROOT  = Object.const_defined?(:Rails) &amp;&amp; Rails.respond_to?(:root) ? Rails.root : RAILS_ROOT
     PLUGIN_ROOT = File.join(File.dirname(__FILE__), '..')
-    VIEW_PATH   = File.join(RAILS_ROOT, 'app', 'views')
-    DESTINATION = File.join(VIEW_PATH, 'forms')
-    
+    DESTINATION = File.join(Rails.root, 'app/views', 'forms')
+
     FileUtils.mkpath(DESTINATION) unless File.directory?(DESTINATION)
     forms = Dir[File.join(PLUGIN_ROOT, 'forms/*')].select { |f| File.file?(f) }
     longest_filename = forms.inject([]) { |sizes, f| sizes &lt;&lt; f.gsub(PLUGIN_ROOT, '').length }.max
 
     forms.each do |partial|
       file_to_copy = File.join(DESTINATION, '/', File.basename(partial))
-      puts &quot; - form_assistant%-#{longest_filename}s copied to %s&quot; % 
-        [partial.gsub(PLUGIN_ROOT, ''), DESTINATION.gsub(RAILS_ROOT, '')]
-      FileUtils.cp [partial], DESTINATION    
+      puts &quot; - form_assistant%-#{longest_filename}s copied to %s&quot; %
+        [partial.gsub(PLUGIN_ROOT, ''), DESTINATION.gsub(Rails.root, '')]
+      FileUtils.cp [partial], DESTINATION
     end
   end
 end
\ No newline at end of file</diff>
      <filename>tasks/form_assistant_tasks.rake</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>582be57655556ca9185e34e36f61239a4c6eb13d</id>
    </parent>
  </parents>
  <author>
    <name>rpheath</name>
    <email>rpheath@gmail.com</email>
  </author>
  <url>http://github.com/rpheath/form_assistant/commit/c4003a925edb5f35e889ff259250dd1d5e8da55d</url>
  <id>c4003a925edb5f35e889ff259250dd1d5e8da55d</id>
  <committed-date>2008-11-12T08:45:20-08:00</committed-date>
  <authored-date>2008-11-12T08:45:20-08:00</authored-date>
  <message>cleaned up rake task a little</message>
  <tree>4c51040b568449cfb8c96500ecfe3b35473aeecb</tree>
  <committer>
    <name>rpheath</name>
    <email>rpheath@gmail.com</email>
  </committer>
</commit>
