hobo_rapid 2.0.0.pre4 → 2.0.0.pre5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/taglibs/html/a.dryml +7 -1
  3. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.0.pre4
1
+ 2.0.0.pre5
data/taglibs/html/a.dryml CHANGED
@@ -47,7 +47,7 @@ Or a new page if the context is a class:
47
47
 
48
48
  The standard AJAX form attributes are supported. This can be used for conventional Ajax:
49
49
 
50
- <a href="&refresh_path" update="results">Refresh results</a>
50
+ <a href="&request.fullpath" update="results">Refresh results</a>
51
51
 
52
52
  Or it can be used with push-state to provide faster links:
53
53
 
@@ -61,6 +61,12 @@ AJAX attributes are supported in both modes: in the "magic" mode where
61
61
  RAPID determines the href target or in "passthrough" where you supply
62
62
  the href or name.
63
63
 
64
+ Note that `<a>` does NOT set the `page_path` parameter the way that `<form>` does. This means that Hobo will attempt to render a part in the DRYML for your destination path rather than a part in the current DRYML. This will only work if either the source and the destination are the same as in our first example, or if the source and destination have a similar part layout.
65
+
66
+ This is desired behaviour; `<a>` usually means 'go somewhere else' after all. If you want to set page_path, you're usually better off using a real form:
67
+
68
+ <form action="somewhere/else" update="foo"><submit label="update foo"/></form>
69
+
64
70
  ### Attributes
65
71
 
66
72
  The standard AJAX attributes are supported.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hobo_rapid
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre4
4
+ version: 2.0.0.pre5
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-19 00:00:00.000000000 Z
12
+ date: 2012-11-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hobo
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 2.0.0.pre4
21
+ version: 2.0.0.pre5
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: 2.0.0.pre4
29
+ version: 2.0.0.pre5
30
30
  description: The RAPID tag library for Hobo
31
31
  email: tom@tomlocke.com
32
32
  executables: []