Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

8 lines (5 sloc) 0.235 kB
line = "HighVoltage::Routes.draw(map)"
path = "config/routes.rb"
puts "inserting #{line} into #{path}"
content = File.read(path).sub(/^(end\s*)$/) {|match| " #{line}\n#{match}" }
File.open(path, 'wb') { |file| file.write(content) }
Jump to Line
Something went wrong with that request. Please try again.