{"action":"created","issue":{"url":"https://api.github.com/repos/eddietejeda/administrate-field-json/issues/4","repository_url":"https://api.github.com/repos/eddietejeda/administrate-field-json","labels_url":"https://api.github.com/repos/eddietejeda/administrate-field-json/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/eddietejeda/administrate-field-json/issues/4/comments","events_url":"https://api.github.com/repos/eddietejeda/administrate-field-json/issues/4/events","html_url":"https://github.com/eddietejeda/administrate-field-json/issues/4","id":161442101,"number":4,"title":"administrate-field-json.js not loading","user":{"login":"thebenedict","id":110948,"avatar_url":"https://avatars.githubusercontent.com/u/110948?v=3","gravatar_id":"","url":"https://api.github.com/users/thebenedict","html_url":"https://github.com/thebenedict","followers_url":"https://api.github.com/users/thebenedict/followers","following_url":"https://api.github.com/users/thebenedict/following{/other_user}","gists_url":"https://api.github.com/users/thebenedict/gists{/gist_id}","starred_url":"https://api.github.com/users/thebenedict/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thebenedict/subscriptions","organizations_url":"https://api.github.com/users/thebenedict/orgs","repos_url":"https://api.github.com/users/thebenedict/repos","events_url":"https://api.github.com/users/thebenedict/events{/privacy}","received_events_url":"https://api.github.com/users/thebenedict/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-21T13:50:16Z","updated_at":"2016-06-23T22:38:11Z","closed_at":null,"body":"Thanks very much for making a json field, exactly what I'm looking for.\r\n\r\nOn install (Rails 4.2.0, Administrate 0.2.2) the javascript doesn't load for me. I notice that `administrate-field-json.js` is in an administrate-field-json subdirectory of assets, i.e. `/app/assets/javascripts/administrate-field-json/administrate-field-json.js`\r\n\r\nSo I have to change:\r\n\r\n`Administrate::Engine.add_javascript \"administrate-field-json\"`\r\n\r\nto\r\n\r\n `Administrate::Engine.add_javascript \"administrate-field-json/administrate-field-json\"`\r\n\r\nin /lib/administrate/field/json.rb in order to load the javascript.\r\n\r\nIs there a reason for the subdirectory, or a different approach you prefer? Removing the subdirectory also fixes the issue for me. Happy to submit a PR with either.\r\n\r\nDo you intend to release this under an open source license? Very interested in using and contributing.\r\n"},"comment":{"url":"https://api.github.com/repos/eddietejeda/administrate-field-json/issues/comments/228206833","html_url":"https://github.com/eddietejeda/administrate-field-json/issues/4#issuecomment-228206833","issue_url":"https://api.github.com/repos/eddietejeda/administrate-field-json/issues/4","id":228206833,"user":{"login":"eddietejeda","id":669988,"avatar_url":"https://avatars.githubusercontent.com/u/669988?v=3","gravatar_id":"","url":"https://api.github.com/users/eddietejeda","html_url":"https://github.com/eddietejeda","followers_url":"https://api.github.com/users/eddietejeda/followers","following_url":"https://api.github.com/users/eddietejeda/following{/other_user}","gists_url":"https://api.github.com/users/eddietejeda/gists{/gist_id}","starred_url":"https://api.github.com/users/eddietejeda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddietejeda/subscriptions","organizations_url":"https://api.github.com/users/eddietejeda/orgs","repos_url":"https://api.github.com/users/eddietejeda/repos","events_url":"https://api.github.com/users/eddietejeda/events{/privacy}","received_events_url":"https://api.github.com/users/eddietejeda/received_events","type":"User","site_admin":false},"created_at":"2016-06-23T22:38:11Z","updated_at":"2016-06-23T22:38:11Z","body":"@thebenedict thanks for looking into this. I assumed people were working from the release, not master branch. Sorry if it caused problems.\r\n\r\nBut I have found that naming using application.js causes problems with asset pipeline.\r\n\r\nI just pushed up a commit that removes the duplicate printing and proper path to .js.\r\n\r\nIf these fixes works for you all, I would be ready to push 0.0.2 to ruby gems."}}
{"actor":{"display_login":"eddietejeda"}}