Skip to content
Browse files

Explain how merb_jquery is supposed to be used atm.

  • Loading branch information...
1 parent 170fa50 commit f6d3ff49006761b40b1f4b193e52aea65a278997 @michaelklishin michaelklishin committed with mattetti
Showing with 22 additions and 3 deletions.
  1. +22 −3 merb_jquery/README
View
25 merb_jquery/README
@@ -3,10 +3,10 @@ merb-jquery
Makes it easy to use jQuery in your application.
-$ gem install merb-jquery
+$ gem install merb_jquery
Add
- require 'merb-jquery'
+ require 'merb_jquery'
to your init.rb
$ rake merb:jquery:install
@@ -21,4 +21,23 @@ In your views:
<% jquery do %>
$('#foo').something();
-<% end %>
+<% end %>
+
+jquery is a helper method is a shortcut to
+
+throw_content :for_query and catch_content :for_jquery
+
+You still need to inlude jQuery javascript file manually, for instance,
+using merb-assets:
+
+# in init.rb
+
+dependency "merb-assets", "0.9.10"
+
+# in Erb layout
+
+<%= js_include_tag "jquery" %>
+
+# or in Haml layout
+
+= js_include_tag "jquery"

0 comments on commit f6d3ff4

Please sign in to comment.
Something went wrong with that request. Please try again.