{"action":"created","issue":{"url":"https://api.github.com/repos/thoughtbot/paperclip/issues/1867","labels_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/1867/labels{/name}","comments_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/1867/comments","events_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/1867/events","html_url":"https://github.com/thoughtbot/paperclip/issues/1867","id":79130575,"number":1867,"title":"rails 4 and paperclip storing path","user":{"login":"TheRealGuardDogGPS","id":5922053,"avatar_url":"https://avatars.githubusercontent.com/u/5922053?v=3","gravatar_id":"","url":"https://api.github.com/users/TheRealGuardDogGPS","html_url":"https://github.com/TheRealGuardDogGPS","followers_url":"https://api.github.com/users/TheRealGuardDogGPS/followers","following_url":"https://api.github.com/users/TheRealGuardDogGPS/following{/other_user}","gists_url":"https://api.github.com/users/TheRealGuardDogGPS/gists{/gist_id}","starred_url":"https://api.github.com/users/TheRealGuardDogGPS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheRealGuardDogGPS/subscriptions","organizations_url":"https://api.github.com/users/TheRealGuardDogGPS/orgs","repos_url":"https://api.github.com/users/TheRealGuardDogGPS/repos","events_url":"https://api.github.com/users/TheRealGuardDogGPS/events{/privacy}","received_events_url":"https://api.github.com/users/TheRealGuardDogGPS/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/thoughtbot/paperclip/labels/Question/Discussion","name":"Question/Discussion","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-21T19:32:20Z","updated_at":"2015-05-27T14:18:00Z","closed_at":null,"body":"I am not following the logic of the paperclip gem. First, I use the default url Paperclip saves to, which is located in the /system/ folder. However, when I actually try to look for the image inside the folder, it is not there:\r\n\r\n$ cd /system/content_templates/screenshots/000/000/012/original/\r\n-bash: cd: /system/content_templates/screenshots/000/000/012/original/: No such file or directory\r\nOk, so I don't know what that is about. So instead I change the url option:\r\n\r\n  has_attached_file :screenshot, :path => \"/:default_template/template_:id/:filename\",\r\n                                 :url => '/:class/:id/:style.:extension'\r\nNow it saves it here:\r\n\r\nhttp://localhost:3000/content_templates/13/original.png?1432232921\r\n\r\nrails_root donato$ cd content_templates\r\n-bash: cd: content_templates: No such file or directory\r\nI also tried doing this:\r\n\r\n:default_url => ActionController::Base.helpers.asset_path('missing_:style.png')\r\nwhich produces the following routing error:\r\n\r\n GET http://localhost:3000/system/content_templates/screenshots/000/000/014/original/screenshot.png?1432233844 404 (Not Found)\r\nSo what am I doing wrong? How am I supposed to determine the path of the Paperclip gem?"},"comment":{"url":"https://api.github.com/repos/thoughtbot/paperclip/issues/comments/105928149","html_url":"https://github.com/thoughtbot/paperclip/issues/1867#issuecomment-105928149","issue_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/1867","id":105928149,"user":{"login":"pedrosmmoreira","id":658761,"avatar_url":"https://avatars.githubusercontent.com/u/658761?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrosmmoreira","html_url":"https://github.com/pedrosmmoreira","followers_url":"https://api.github.com/users/pedrosmmoreira/followers","following_url":"https://api.github.com/users/pedrosmmoreira/following{/other_user}","gists_url":"https://api.github.com/users/pedrosmmoreira/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrosmmoreira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrosmmoreira/subscriptions","organizations_url":"https://api.github.com/users/pedrosmmoreira/orgs","repos_url":"https://api.github.com/users/pedrosmmoreira/repos","events_url":"https://api.github.com/users/pedrosmmoreira/events{/privacy}","received_events_url":"https://api.github.com/users/pedrosmmoreira/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T14:18:00Z","updated_at":"2015-05-27T14:18:00Z","body":"@TheRealGuardDogGPS From your prompt it seems you are not in your application path? The default url should store files within `yourapplication/public/system'. Does this help?"}}