def create_model_file
      dir = "/app/models/#{@scaffold_name}.rb"
      unless File.exists?(File.join(Dir.pwd,dir))
        File.join(Dir.pwd,dir)
        source = "#{@gem_path}/lib/modules/scaffold/model.rb"
        FileUtils.cp(source,File.join(Dir.pwd,dir))
        config_model
        @valid = true
        $stdout.puts "\e[1;32m \tcreate\e[0m\t#{dir}"
      else
        $stdout.puts "\e[1;31mError:\e[0m Model named #{@scaffold_name} already exists, aborting."
      end
    end
def create_model_file
      dir = "/app/models/#{@scaffold_name}.rb"
      unless File.exists?(File.join(Dir.pwd,dir))
        File.join(Dir.pwd,dir)
        source = "#{@gem_path}/lib/modules/scaffold/model.rb"
        FileUtils.cp(source,File.join(Dir.pwd,dir))
        config_model
        @valid = true
        $stdout.puts "\e[1;32m \tcreate\e[0m\t#{dir}"
      else
        $stdout.puts "\e[1;31mError:\e[0m Model named #{@scaffold_name} already exists, aborting."
      end
    end
=begin
Generates the model file with CRED functionality.
=end