{"action":"created","issue":{"url":"https://api.github.com/repos/imgly/imgly-sdk-html5/issues/66","labels_url":"https://api.github.com/repos/imgly/imgly-sdk-html5/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/imgly/imgly-sdk-html5/issues/66/comments","events_url":"https://api.github.com/repos/imgly/imgly-sdk-html5/issues/66/events","html_url":"https://github.com/imgly/imgly-sdk-html5/issues/66","id":101679068,"number":66,"title":"Assets pipeline error in Ruby on Rails","user":{"login":"barsukov","id":1594996,"avatar_url":"https://avatars.githubusercontent.com/u/1594996?v=3","gravatar_id":"","url":"https://api.github.com/users/barsukov","html_url":"https://github.com/barsukov","followers_url":"https://api.github.com/users/barsukov/followers","following_url":"https://api.github.com/users/barsukov/following{/other_user}","gists_url":"https://api.github.com/users/barsukov/gists{/gist_id}","starred_url":"https://api.github.com/users/barsukov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barsukov/subscriptions","organizations_url":"https://api.github.com/users/barsukov/orgs","repos_url":"https://api.github.com/users/barsukov/repos","events_url":"https://api.github.com/users/barsukov/events{/privacy}","received_events_url":"https://api.github.com/users/barsukov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-08-18T15:09:46Z","updated_at":"2015-08-19T08:34:28Z","closed_at":null,"body":"Hi,\r\n\r\nwe are trying to include your SDK in a Ruby on Rails application. Rails since version 4.0 enhances every asset file name with fingerprints (a MD5 hash of the files content). This way all assets can be cached forever, since the content of a file will never change. Details can be found at http://guides.rubyonrails.org/asset_pipeline.html .\r\n\r\nImgly SDK references assets with a static filename (e.g. `ui/night/operations/crop.png`) for it's icons and stickers. This does not work for Rails with precompiled assets, since Rails will generate a file like `ui/night/operations/crop-bf4a75b66f4e4e1efacfc43fc82de0da.png`. Your editor will look like this:\r\n\r\n![screenshot]\r\n(https://cloud.githubusercontent.com/assets/651816/9270263/9862b59c-4270-11e5-88c3-ee8fd790b353.png)\r\n\r\n\r\nCould you provide a way, to be compatible with the Rails asset pipeline?\r\n\r\nOne solution could be, to not reference images from javascript directly, but instead use css classes. The stylesheet than should reference the image or ideally include it directly as a base64 encoded image. A more advanced solution could be, to no longer rely on png images as icons, but instead use an icon font."},"comment":{"url":"https://api.github.com/repos/imgly/imgly-sdk-html5/issues/comments/132493146","html_url":"https://github.com/imgly/imgly-sdk-html5/issues/66#issuecomment-132493146","issue_url":"https://api.github.com/repos/imgly/imgly-sdk-html5/issues/66","id":132493146,"user":{"login":"saschagehlich","id":119684,"avatar_url":"https://avatars.githubusercontent.com/u/119684?v=3","gravatar_id":"","url":"https://api.github.com/users/saschagehlich","html_url":"https://github.com/saschagehlich","followers_url":"https://api.github.com/users/saschagehlich/followers","following_url":"https://api.github.com/users/saschagehlich/following{/other_user}","gists_url":"https://api.github.com/users/saschagehlich/gists{/gist_id}","starred_url":"https://api.github.com/users/saschagehlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saschagehlich/subscriptions","organizations_url":"https://api.github.com/users/saschagehlich/orgs","repos_url":"https://api.github.com/users/saschagehlich/repos","events_url":"https://api.github.com/users/saschagehlich/events{/privacy}","received_events_url":"https://api.github.com/users/saschagehlich/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T08:34:28Z","updated_at":"2015-08-19T08:34:28Z","body":"I thought I already posted it here, but looks like I didn't. This feature has been added last night.\r\n\r\nhttps://github.com/imgly/imgly-sdk-html5/commit/8c2054a0d5d40280a1cd74546594485d9d7df72a"}}