# Rails 3 App generator - could not find source path

**URL:** <https://www.ruby-forum.com/t/rails-3-app-generator-could-not-find-source-path/182541>\
**Category:** Rails\
**Created:** [January 29, 2010, 4:46pm UTC](https://www.ruby-forum.com/t/rails-3-app-generator-could-not-find-source-path/182541 "2010-01-29T16:46:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kristian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e8c25b/32.png) [@Kristian](https://www.ruby-forum.com/u/Kristian)\
**Post date:** [January 29, 2010, 4:46pm UTC](https://www.ruby-forum.com/t/rails-3-app-generator-could-not-find-source-path/182541/1 "2010-01-29T16:46:19Z")

</div>

Could not find “README” in source paths.

module Nifty  
module Generators  
class AppGenerator \< Base

```
  def self.source_root
    @source_root ||= File.expand_path(File.join(File.dirname

```

( **FILE** ), ‘templates’))  
end

```
  def initialize(*args)
    super
  end

  def create_root_files
    # puts "Source path: #{self.source_root}"
    copy_file "README"
    ...
  end

```

end

Even when I try to add the puts statement to see what the source\_root  
is, I am told “unknown method” !?  
Any ideas?

Thanks!

---

<div class="post-metadata">

**Author:** ![Kristian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e8c25b/32.png) [@Kristian](https://www.ruby-forum.com/u/Kristian)\
**Post date:** [January 30, 2010, 12:05am UTC](https://www.ruby-forum.com/t/rails-3-app-generator-could-not-find-source-path/182541/2 "2010-01-30T00:05:56Z")

</div>

Works with this in my Rakefile 🙂

```
gem.files=FileList['lib/**/*', 'bin/*']
```
