README.md in gon-0.2.1 vs README.md in gon-0.2.2
- old
+ new
@@ -15,33 +15,39 @@
```
In action of your controller you put something like this:
``` ruby
-@your_variable = 123
-Gon.your_variable = @your_variable
-Gon.your_other_variable = 345 + @your_variable
+@your_int = 123
+@your_array = [1,2]
+@your_hash = {'a' => 1, 'b' => 2}
+Gon.your_int = @your_int
+Gon.your_other_int = 345 + @your_int
+Gon.your_array = @your_array
+Gon.your_hash = @your_hash
```
In javascript file for view of this action write call to your variable:
``` js
-alert(Gon.your_variable)
-alert(Gon.your_other_variable)
+alert(Gon.your_int)
+alert(Gon.your_other_int)
+alert(Gon.your_array)
+alert(Gon.your_hash)
```
## Installation
Puts this line into `Gemfile` then run `$ bundle`:
``` ruby
-gem 'gon', '0.2.0'
+gem 'gon', '0.2.2'
```
Or if you are old-school Rails 2 developer put this into `config/environment.rb` and run `$ rake gems:install`:
``` ruby
-config.gem 'gon', :version => '0.2.0'
+config.gem 'gon', :version => '0.2.2'
```
Or manually install gon gem: `$ gem install gon`
## Contributors