Installing jrails

This commit is contained in:
Eric Allen 2009-09-02 10:04:17 -04:00
parent 66de0f9fd8
commit be43b3ded8
20 changed files with 1269 additions and 0 deletions

9
vendor/plugins/jrails/install.rb vendored Normal file
View file

@ -0,0 +1,9 @@
# Install hook code here
puts "Copying files..."
dir = "javascripts"
["jquery-ui.js", "jquery.js", "jrails.js"].each do |js_file|
dest_file = File.join(RAILS_ROOT, "public", dir, js_file)
src_file = File.join(File.dirname(__FILE__) , dir, js_file)
FileUtils.cp_r(src_file, dest_file)
end
puts "Files copied - Installation complete!"