Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Régis Hanol's Profile

GitHub User: ZogStriP

Site: http://regishanol.fr

Comments by Régis Hanol

Avatar
/config/recipes/base.rb
def template(from, to)
    erb = File.read(File.expand_path("../templates/#{from}"), __FILE__)
    put ERB.new(erb).result(binding), to
end

should be:

/config/recipes/base.rb
def template(from, to)
    erb = File.read(File.expand_path("../templates/#{from}", __FILE__))
    put ERB.new(erb).result(binding), to
end