Rails 3 App generator - could not find source path

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!

Works with this in my Rakefile :slight_smile:

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs