gon icon indicating copy to clipboard operation
gon copied to clipboard

Your Rails variables in your JS

Results 46 gon issues
Sort by recently updated
recently updated
newest added

gon version: 6.4.0 Ruby version: 3.0.0 Rails version: 6.0.6 The error **"ArgumentError - tried to create Proc object without a block"** appears when **** is added on the main application.html.erb...

This solves `wrong number of arguments (given 2, expected 1)` errors

According to documentation, gon supports JBuilder templates out of the box. In JBuilder, it is possible to use Rails view helpers methods without further configuration, but when trying to render...

I'm having a strange problem: previously, the gon gem was working for me to pass an array of objects to the browser. Here's the assignment: `gon.frames = @job.sequence.frames.sort_by(&:n)` Previously, this...

I don't have any suggestions here, but wanted to start a thread about ways to make gon work in a webpacker world... Specifically such that `gon` could be imported by...

When using gon with Jbuilder and the `key_format! :camelize :lower` option, array database attributes are incorrectly parsed to json. Visiting the .json route displays the correctly parsed JSON from Jbuilder,...

Hello! Hopefully someone can help me with this because this was going to make implementing stripe a little easier for me! So I tried to install gon so that i...

``` Failures: 1) Gon#include_gon outputs correct js with a script string Failure/Error: expect(@base.include_gon).to eq(wrap_script( 'window.gon={};' + %Q(gon.str="#{escaped_str}";)) ) expected: "\n//\n" got: "\n//alert('!')\";\n//]]>\n" (compared using ==) Diff: @@ -1,6 +1,6 @@...

gon output currently has no newlines in it, which is compact but can be hard to read. For usability it would be helpful to have an option that would format...