Skip to content
This repository
Browse code

Fixes readme links better - earlier links broke when the current page…

… is anything other than github.com/rails/rails/. Even github.com/rails/rails (without the trailing slash) broke the readme links. Also change the rakefile that generates the rdoc readme accordingly
  • Loading branch information...
commit c3bd6bb75fdbeb8f5d92b12ed2a9f5d4958d2f9c 1 parent 9ecc443
Vijay Dev authored August 13, 2011

Showing 2 changed files with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 4  README.rdoc
  2. 2  Rakefile
4  README.rdoc
Source Rendered
@@ -18,7 +18,7 @@ you to present the data from database rows as objects and embellish these data o
18 18
 with business logic methods. Although most Rails models are backed by a database, models 
19 19
 can also be ordinary Ruby classes, or Ruby classes that implement a set of interfaces as
20 20
 provided by the ActiveModel module. You can read more about Active Record in its
21  
-{README}[link:blob/master/activerecord/README.rdoc].
  21
+{README}[link:/rails/rails/blob/master/activerecord/README.rdoc].
22 22
 
23 23
 The Controller layer is responsible for handling incoming HTTP requests and providing a 
24 24
 suitable response. Usually this means returning HTML, but Rails controllers can also
@@ -29,7 +29,7 @@ In Rails, the Controller and View layers are handled together by Action Pack.
29 29
 These two layers are bundled in a single package due to their heavy interdependence. 
30 30
 This is unlike the relationship between Active Record and Action Pack which are
31 31
 independent. Each of these packages can be used independently outside of Rails. You 
32  
-can read more about Action Pack in its {README}[link:blob/master/actionpack/README.rdoc].
  32
+can read more about Action Pack in its {README}[link:/rails/rails/blob/master/actionpack/README.rdoc].
33 33
 
34 34
 == Getting Started
35 35
 
2  Rakefile
@@ -74,7 +74,7 @@ RDoc::Task.new do |rdoc|
74 74
     # since no autolinking happens there and RDoc displays the backslash
75 75
     # otherwise.
76 76
     rdoc_main.gsub!(/^(?=\S).*?\b(?=Rails)\b/) { "#$&\\" }
77  
-    rdoc_main.gsub!(%r{link:blob/master/(\w+)/README\.rdoc}, "link:files/\\1/README_rdoc.html")
  77
+    rdoc_main.gsub!(%r{link:/rails/rails/blob/master/(\w+)/README\.rdoc}, "link:files/\\1/README_rdoc.html")
78 78
 
79 79
     File.open(RDOC_MAIN, 'w') do |f|
80 80
       f.write(rdoc_main)

0 notes on commit c3bd6bb

Please sign in to comment.
Something went wrong with that request. Please try again.