Skip to content

Commit

Permalink
installing jrails properly
Browse files Browse the repository at this point in the history
  • Loading branch information
zachinglis committed Jun 23, 2008
1 parent 20374c2 commit 501ba13
Show file tree
Hide file tree
Showing 15 changed files with 453 additions and 3,567 deletions.
Empty file.
152 changes: 152 additions & 0 deletions public/javascripts/jquery-ui.js

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions public/javascripts/jquery.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions public/javascripts/jrails.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion vendor/plugins/jrails/CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
SVN (26 may 2008)
0.4.0 (16 June 2008)
* updated to jquery-ui 1.5 & merged js into single file
* Added jQuery.noConflict support
* support for value/val
* additional support for update/delete methods
* support for success/failure hash
* setRequestHeader now gets called globally
Expand Down
38 changes: 21 additions & 17 deletions vendor/plugins/jrails/README
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
= jRails

jRails is a drop-in jQuery replacement for the Rails Prototype/script.aculo.us helpers.

== Resources

Install

* .script/plugin install http://ennerchi.googlecode.com/svn/trunk/plugins/jrails

Project Site

* http://code.google.com/p/ennerchi/

Web Site

* http://www.ennerchi.com/projects/jrails
= jRails

jRails is a drop-in jQuery replacement for the Rails Prototype/script.aculo.us helpers.

== Resources

Install

* .script/plugin install http://ennerchi.googlecode.com/svn/trunk/plugins/jrails

Project Site

* http://code.google.com/p/ennerchi/

Web Site

* http://www.ennerchi.com/projects/jrails

Group Site

* http://groups.google.com/group/jrails
5 changes: 4 additions & 1 deletion vendor/plugins/jrails/init.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
ActionView::Helpers::AssetTagHelper::JAVASCRIPT_DEFAULT_SOURCES = ['jquery','jquery-ui','jquery-fx','jrails']
# uncomment to use jQuery.noConflict()
#ActionView::Helpers::PrototypeHelper::JQUERY_VAR = 'jQuery'

ActionView::Helpers::AssetTagHelper::JAVASCRIPT_DEFAULT_SOURCES = ['jquery','jquery-ui','jrails']
ActionView::Helpers::AssetTagHelper::reset_javascript_include_default
require 'jrails'
18 changes: 9 additions & 9 deletions vendor/plugins/jrails/install.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Install hook code here
puts "Copying files..."
dir = "javascripts"
["jquery-fx.js", "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!"
# 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

0 comments on commit 501ba13

Please sign in to comment.