Browse files

Merge pull request #1762 from vijaydev/readme_links_rdoc

Solving the problem of links being broken in GitHub for the sake of api site
  • Loading branch information...
2 parents 2fbb750 + 96c57d4 commit 6c705e33ef78d28d5d964a03edc627f31d7f8c25 @fxn fxn committed Jun 18, 2011
Showing with 3 additions and 2 deletions.
  1. +2 −2 README.rdoc
  2. +1 −0 Rakefile
4 README.rdoc
@@ -18,7 +18,7 @@ you to present the data from database rows as objects and embellish these data o
with business logic methods. Although most Rails models are backed by a database, models
can also be ordinary Ruby classes, or Ruby classes that implement a set of interfaces as
provided by the ActiveModel module. You can read more about Active Record in its
The Controller layer is responsible for handling incoming HTTP requests and providing a
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.
These two layers are bundled in a single package due to their heavy interdependence.
This is unlike the relationship between the Active Record and Action Pack which are
independent. Each of these packages can be used independently outside of Rails. You
-can read more about Action Pack in its {README}[link:files/actionpack/README_rdoc.html].
+can read more about Action Pack in its {README}[link:blob/master/actionpack/README.rdoc].
== Getting Started
1 Rakefile
@@ -71,6 +71,7 @@ do |rdoc|
# since no autolinking happens there and RDoc displays the backslash
# otherwise.
rdoc_main.gsub!(/^(?=\S).*?\b(?=Rails)\b/) { "#$&\\" }
+ rdoc_main.gsub!(/link:blob\/master\/(\w+)\/README.rdoc/, "link:files/\\1/README_rdoc.html"), 'w') do |f|

0 comments on commit 6c705e3

Please sign in to comment.