Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 7f95b2e9c2
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 20 lines (14 sloc) 0.626 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
# Install hook code here

puts "Copying views/forms..."
src = File.join(File.dirname(__FILE__), 'templates', 'views', 'forms')
dst = File.join(RAILS_ROOT, 'app', 'views')
FileUtils.cp_r(src, dst)

puts "Copying stylesheets/*..."
src = File.join(File.dirname(__FILE__), 'templates', 'stylesheets', 'ninja_forms.css')
dst = File.join(RAILS_ROOT, 'public', 'stylesheets')
FileUtils.cp_r(src, dst)

puts "Copying images/icons/*..."
src = File.join(File.dirname(__FILE__), 'templates', 'images', 'icons', 'help.gif')
dst = File.join(RAILS_ROOT, 'public', 'images', 'icons')
FileUtils.cp_r(src, dst)

puts "Installation complete!"

Something went wrong with that request. Please try again.