aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/rails_guides
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-12-25 20:42:20 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-12-25 20:42:20 +0530
commit1acdecf6234b6a8d6dc01d1ada1b8e153c7c60fb (patch)
tree30b513161ee7d844da4ebcd9a640990d035d2973 /railties/guides/rails_guides
parent54e522a38827b7b78968237a762334f94c20f7d7 (diff)
downloadrails-1acdecf6234b6a8d6dc01d1ada1b8e153c7c60fb.tar.gz
rails-1acdecf6234b6a8d6dc01d1ada1b8e153c7c60fb.tar.bz2
rails-1acdecf6234b6a8d6dc01d1ada1b8e153c7c60fb.zip
Some fixes in rails guides generation
* Passing edge information to the views fixes the lack of the edge badge and sets the appropriate welcome page on edgeguides.rubyonrails.org. * Changes in the welcome message to hyper link the rails tree based on the version. * Mention the Amazon url from where kindlegen can be downloaded.
Diffstat (limited to 'railties/guides/rails_guides')
-rw-r--r--railties/guides/rails_guides/generator.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/guides/rails_guides/generator.rb b/railties/guides/rails_guides/generator.rb
index b5f1a471ef..49ad8f7769 100644
--- a/railties/guides/rails_guides/generator.rb
+++ b/railties/guides/rails_guides/generator.rb
@@ -49,8 +49,8 @@
#
# KINDLE
# Set to "1" to generate the .mobi with all the guides. The kindlegen
-# executable must be in your PATH. Google for it if you do not have it
-# locally, it is available from Amazon for free.
+# executable must be in your PATH. You can get it for free from
+# http://www.amazon.com/kindlepublishing
#
# ---------------------------------------------------------------------------
@@ -199,7 +199,7 @@ module RailsGuides
layout = kindle? ? 'kindle/layout' : 'layout'
File.open(output_path, 'w') do |f|
- view = ActionView::Base.new(source_dir, :version => @version, :mobi => "kindle/#{mobi}")
+ view = ActionView::Base.new(source_dir, :edge => @edge, :version => @version, :mobi => "kindle/#{mobi}")
view.extend(Helpers)
if guide =~ /\.(\w+)\.erb$/