Fix the fucking rake task

This commit is contained in:
Pratik Naik
2009-02-20 08:57:09 +01:00
parent 74fe58add5
commit 8a9ef83372
3 changed files with 3 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ $: << pwd
$: << File.join(pwd, "../../activesupport/lib")
$: << File.join(pwd, "../../actionpack/lib")
require "action_controller"
require "action_view"
# Require rubygems after loading Action View

View File

@@ -37,7 +37,7 @@ module RailsGuides
if guide =~ /\.erb\.textile/
# Generate the erb pages with textile formatting - e.g. index/authors
result = view.render(:layout => 'layout', :file => guide)
result = view.render(:layout => 'layout', :file => name)
f.write textile(result)
else
body = File.read(File.join(view_path, guide))

View File

@@ -26,7 +26,7 @@ p. We'd like to thank the following people for their tireless contributions to t
<% end %>
<% author('Pratik Naik', 'lifo') do %>
Pratik Naik is a Ruby on Rails consultant with "ActionRails":http://www.actionrails.com and also a member of the "Rails core team":http://rubyonrails.com/core. He blogs semi-regularly at "has_many :bugs, :through => :rails":http://m.onkey.org and has an active "twitter account":http://twitter.com/lifo.
Pratik Naik is a Ruby on Rails consultant with "ActionRails":http://www.actionrails.com and also a member of the "Rails core team":http://rubyonrails.com/core. He maintains a blog at "has_many :bugs, :through => :rails":http://m.onkey.org and has an active "twitter account":http://twitter.com/lifo.
<% author('Emilio Tagua', 'miloops') do %>
Emilio Tagua -- a.k.a. miloops -- is an Argentinian entrepreneur, developer, open source contributor and Rails evangelist. Cofounder of "Eventioz":http://www.eventioz.com. He has been using Rails since 2006 and contributing since early 2008. Can be found at gmail, twitter, freenode, everywhere as miloops.