README.md in gon-4.0.2 vs README.md in gon-4.0.3
- old
+ new
@@ -39,9 +39,17 @@
1. Write variables by
``` ruby
gon.variable_name = variable_value
+
+ # or new syntax
+ gon.push({
+ :user_id => 1,
+ :user_role => "admin"
+ })
+
+ gon.push(any_object) # any_object with respond_to? :each_pair
```
2. In your js you get this by
``` js