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!