README.md in gon-3.0.4 vs README.md in gon-3.0.5

- old
+ new

@@ -90,10 +90,20 @@ <%= include_gon(:init => true) %> <!-- include your action js code with 'serverExports' namespace --> ... ``` +You can initialize script tag with type="text/javascript" + +``` erb +<head> + <title>some title</title> + <%= include_gon(:need_type => true) %> + <!-- include your action js code with 'serverExports' namespace --> + ... +``` + You can get json without script tag (kudos to @afa): ``` erb <head> <title>some title</title> @@ -347,16 +357,16 @@ ## Installation Puts this line into `Gemfile` then run `$ bundle`: ``` ruby -gem 'gon', '3.0.4' +gem 'gon', '3.0.5' ``` 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 => '3.0.4' +config.gem 'gon', :version => '3.0.5' ``` Or manually install gon gem: `$ gem install gon` ## Contributors