RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: ZogStriP
Site: http://regishanol.fr
def template(from, to) erb = File.read(File.expand_path("../templates/#{from}"), __FILE__) put ERB.new(erb).result(binding), to end
should be:
def template(from, to) erb = File.read(File.expand_path("../templates/#{from}", __FILE__)) put ERB.new(erb).result(binding), to end
should be: