README.md in gon-4.1.1 vs README.md in gon-5.0.0

- old
+ new

@@ -25,11 +25,11 @@ 2. In view for this action you put this variable to some objects by data attributes, or write js right in view 3. Then there can be two ways in js: + if you previously wrote data in data attributes - you should parse this attributes and write data to some - js variable. + js variable. + if you wrote js right in view (many frontenders would shame you for that) - you just use data from this js - OK. 4. You can use your data in your js And everytime when you need to send some data from action to js you do this. @@ -100,10 +100,10 @@ gon.your_array # > [1, 2, 123] gon.clear # gon.all_variables now is {} ``` -Access the varaibles from your JavaScript file: +Access the variables from your JavaScript file: ``` js alert(gon.your_int) alert(gon.your_other_int) alert(gon.your_array)