diff --git a/guides/source/generators.textile b/guides/source/generators.textile
index 920ff997ae934cfc85ce38e66e576f9b2105674b..836f3d85497d69b00d84c14c9ea1b994d86a0216 100644
--- a/guides/source/generators.textile
+++ b/guides/source/generators.textile
@@ -451,6 +451,27 @@ Adds a specified source to +Gemfile+:
add_source "http://gems.github.com"
+h4. +inject_into_file+
+
+Injects a block of code into a defined position in your file.
+
+
+inject_into_file 'name_of_file.rb', :after => "#The code goes below this line. Don't for get the Line break at the end\n" do <<-'RUBY'
+ puts "Hello World"
+RUBY
+end
+
+
+h4. +gsub_file+
+
+Replaces text inside a file.
+
+
+ gsub_file 'name_of_file.rb', 'method.to_be_replaced', 'method.the_replacing_code'
+