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

Hi! Since I've installed gon, my rake tasks aren't working anymore. I'm using: ``` Rails 3.2.22.2 ruby 2.2.0p0 gon-6.0.1 test-unit-3.0.8 ``` I can't uninstall test-unit because: ``` $ rails c...

Using ``` gon.push({ :abc => :def }) ``` causes gon.abc to be available between requests, just like something gon.global would do according to docs. Steps to reproduce: 1. Add gon.push({...

I'm getting a very strange behavior when running feature spec I get this error: ``` RuntimeError: You can't use Gon public methods for storing data # /Users/justin/.rvm/gems/ruby-2.2.4@bpos/gems/gon-6.0.1/lib/gon.rb:39:in `method_missing' ``` I...

The rails helper methods: path_to_image and image_path (same thing, 1 is an alias) now return `/images/YOURIMAGE.PNG` instead of `/assets/YOURIMAGE.PNG` which is what it's supposed to return. If I revert to...

Maybe im not reading something correctly. I have a rabl template formed. it pulls in the data in json, like it is supposed to. do I have to type gon.watch.rabl,...

Jbuilder partial doesn't seem to be working. I'm receiving this error: `undefined local variable or method `item' for Gon::Jbuilder:Module` --- show.json.jbuilder ``` json.partial! 'items/item', collection: @items, as: :item ``` _item.json.jbuilder...

Hi, I've run into an issue that seems to be a "continuation" of https://github.com/gazay/gon/issues/26, which in turn seems related to https://github.com/nesquena/rabl/issues/19 and https://github.com/nesquena/rabl/issues/147 Context: a "topic" has many "exercises". I'm...

When I have gon.rabl as: 'sites' in my controller my functional test fails. It says: `NoMethodError: undefined method `controller_path' for nil:NilClass`

I just quickly stumbled upon this repository and couldn't find much information about what it's actually doing to make the variables available in the JS. It is something I would...

In rails I have a bunch of 'notices' in the html, each of which has latitude and longitude attributes for a corresponding marker on a google map. I send an...