mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-21 17:50:13 +01:00
Installing jrails
This commit is contained in:
parent
66de0f9fd8
commit
be43b3ded8
20 changed files with 1269 additions and 0 deletions
9
vendor/plugins/jrails/install.rb
vendored
Normal file
9
vendor/plugins/jrails/install.rb
vendored
Normal 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!"
|
||||
Loading…
Add table
Add a link
Reference in a new issue