pjax-rails 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -7,7 +7,20 @@ To activate, add this to your app/assets/javascripts/application.js (or whatever
7
7
 
8
8
  //=require pjax
9
9
 
10
- All links that matches $('a:not([data-remote]):not([data-behavior])') will then use PJAX.
10
+ All links that match $('a:not([data-remote]):not([data-behavior])') will then use PJAX.
11
+
12
+ The PJAX container has to be marked with data-pjax-container=true, so for example:
13
+
14
+ <body>
15
+ <div>
16
+ <!-- This will not be touched on PJAX updates -->
17
+ </div>
18
+
19
+ <div data-pjax-container="true">
20
+ <!-- PJAX updates will go here -->
21
+ </div>
22
+ </body>
23
+
11
24
 
12
25
  FIXME: Currently the layout is hardcoded to "application". Need to delegate that to the specific layout of the controller.
13
26
 
@@ -1 +1 @@
1
- $ -> $('a:not([data-remote]):not([data-behavior])').pjax('div#main')
1
+ $ -> $('a:not([data-remote]):not([data-behavior])').pjax('[data-pjax-container]')
Binary file
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'pjax-rails'
3
- s.version = '0.1.1'
3
+ s.version = '0.1.2'
4
4
  s.author = 'David Heinemeier Hansson (PJAX by Chris Wanstrath)'
5
5
  s.email = 'david@loudthinking.com'
6
6
  s.summary = 'PJAX integration for Rails 3.1+'
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: pjax-rails
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.1
5
+ version: 0.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - David Heinemeier Hansson (PJAX by Chris Wanstrath)
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-18 00:00:00 -04:00
13
+ date: 2011-05-22 00:00:00 -05:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency