README.md in gon-0.1.1 vs README.md in gon-0.2.0
- old
+ new
@@ -7,13 +7,12 @@
`app/views/layouts/application.html.erb`
``` erb
<head>
<title>some title</title>
- <%= gon_variables %>
- <%= javascript_include_tag 'http://code.jquery.com/jquery-1.6.min.js' %> <!-- include jquery -->
- <%= include_gon_js %> <!-- http://gaziev.com/files/gon.js -->
+ <%= include_gon %>
+ <!-- include your action js code -->
...
```
In action of your controller you put something like this:
@@ -33,16 +32,16 @@
## Installation
Puts this line into `Gemfile` then run `$ bundle`:
``` ruby
-gem 'gon', '0.1.0'
+gem 'gon', '0.2.0'
```
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.1.0'
+config.gem 'gon', :version => '0.2.0'
```
Or manually install gon gem: `$ gem install gon`
## Contributors