Fixed association picture reference

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1264 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2005-04-30 15:55:25 +00:00
parent 2bf223051e
commit b921b5da15
2 changed files with 8 additions and 2 deletions

@ -60,6 +60,12 @@ Rake::RDocTask.new { |rdoc|
rdoc.rdoc_files.include('dev-utils/*.rb')
}
# Enhance rdoc task to copy referenced images also
task :rdoc do
FileUtils.mkdir_p "doc/files/examples/"
FileUtils.copy "examples/associations.png", "doc/files/examples/associations.png"
end
# Create compressed packages
@ -252,4 +258,4 @@ task :release => [:package] do
first_file = false
end
end
end
end

@ -43,7 +43,7 @@ def clear_association_cache #:nodoc:
#
# == Example
#
# link:../../examples/associations.png
# link:files/examples/associations.png
#
# == Is it belongs_to or has_one?
#