Permalink
Browse files

Fix bug with generating example post with `rails generate postmarkdow…

…n:install`.
  • Loading branch information...
nathanaelkane committed Jun 12, 2011
1 parent 55a06a9 commit 5af3c7f8c0d0f57ff8d5d07cf672f67741afef1b
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/generators/postmarkdown/install_generator.rb
@@ -10,7 +10,7 @@ def create_directory
def generate_example_post
unless options.skip_example?
- copy_file 'example-post.markdown', "app/posts/#{Time.now.strftime('%Y-%m-%d')}-example-post.markdown"
+ template 'example-post.markdown', "app/posts/#{Time.now.strftime('%Y-%m-%d')}-example-post.markdown"
end
end

0 comments on commit 5af3c7f

Please sign in to comment.