{"action":"created","issue":{"url":"https://api.github.com/repos/futurepress/epub.js/issues/289","labels_url":"https://api.github.com/repos/futurepress/epub.js/issues/289/labels{/name}","comments_url":"https://api.github.com/repos/futurepress/epub.js/issues/289/comments","events_url":"https://api.github.com/repos/futurepress/epub.js/issues/289/events","html_url":"https://github.com/futurepress/epub.js/issues/289","id":110699395,"number":289,"title":"Rails and epub.js","user":{"login":"Patrax","id":1750530,"avatar_url":"https://avatars.githubusercontent.com/u/1750530?v=3","gravatar_id":"","url":"https://api.github.com/users/Patrax","html_url":"https://github.com/Patrax","followers_url":"https://api.github.com/users/Patrax/followers","following_url":"https://api.github.com/users/Patrax/following{/other_user}","gists_url":"https://api.github.com/users/Patrax/gists{/gist_id}","starred_url":"https://api.github.com/users/Patrax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Patrax/subscriptions","organizations_url":"https://api.github.com/users/Patrax/orgs","repos_url":"https://api.github.com/users/Patrax/repos","events_url":"https://api.github.com/users/Patrax/events{/privacy}","received_events_url":"https://api.github.com/users/Patrax/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-09T17:04:02Z","updated_at":"2015-10-09T17:17:30Z","closed_at":null,"body":"I've been struggling with this for way too long. Has anyone successfully used epub.js with rails?\r\nI'm getting a lot of route errors, eg:\r\n\r\n`ActionController::RoutingError (No route matches [GET] \"/read/name-of-book/META-INF/container.xml\"):`\r\n\r\nWhat are the essentials to get the epub reader to work properly? If I can't serve an epub from the public directory in my webapp what are my chances of making it work with AWS S3? Should I just disable turbolinks for routing to work?\r\n\r\nPS: Sorry about the ambiguous 'issue', I'm just a bit overwhelmed and any help or nudge in the right direction would help a lot."},"comment":{"url":"https://api.github.com/repos/futurepress/epub.js/issues/comments/146936885","html_url":"https://github.com/futurepress/epub.js/issues/289#issuecomment-146936885","issue_url":"https://api.github.com/repos/futurepress/epub.js/issues/289","id":146936885,"user":{"login":"fchasen","id":213312,"avatar_url":"https://avatars.githubusercontent.com/u/213312?v=3","gravatar_id":"","url":"https://api.github.com/users/fchasen","html_url":"https://github.com/fchasen","followers_url":"https://api.github.com/users/fchasen/followers","following_url":"https://api.github.com/users/fchasen/following{/other_user}","gists_url":"https://api.github.com/users/fchasen/gists{/gist_id}","starred_url":"https://api.github.com/users/fchasen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fchasen/subscriptions","organizations_url":"https://api.github.com/users/fchasen/orgs","repos_url":"https://api.github.com/users/fchasen/repos","events_url":"https://api.github.com/users/fchasen/events{/privacy}","received_events_url":"https://api.github.com/users/fchasen/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T17:17:30Z","updated_at":"2015-10-09T17:17:30Z","body":"Sorry to hear you're having issues, epub.js will work great with Rails but going to need some more information to help. \r\n\r\nFirst which version of Rails are you using?\r\n\r\nIs the book is present in the folder `assets/public/read/name-of-book/`? Is it a compressed (.epub) or unzipped?\r\n\r\nYou might need to switch to using `config.serve_static_assets = true` in your environments  files: https://support.anynines.com/entries/25843538-Rails-Asset-Pipeline-Serve-static-assets-from-the-public-directory\r\n\r\nThe forum or gitter might also be a good places to reach out for help."}}