GitHub PullRequestEvent at 2014-05-16 18:47:14
Repository: rails_email_preview
Actor: rzane
Payload: {"action":"opened","number":40,"pull_request":{"url":"https://api.github.com/repos/glebm/rails_email_preview/pulls/40","id":16002539,"html_url":"https://github.com/glebm/rails_email_preview/pull/40","diff_url":"https://github.com/glebm/rails_email_preview/pull/40.diff","patch_url":"https://github.com/glebm/rails_email_preview/pull/40.patch","issue_url":"https://api.github.com/repos/glebm/rails_email_preview/issues/40","number":40,"state":"open","title":"Inline Attachments don't seem to work","user":{"login":"rzane","id":2731572,"avatar_url":"https://avatars.githubusercontent.com/u/2731572?","gravatar_id":"4972f78583dc72d265e82c11c0d4f336","url":"https://api.github.com/users/rzane","html_url":"https://github.com/rzane","followers_url":"https://api.github.com/users/rzane/followers","following_url":"https://api.github.com/users/rzane/following{/other_user}","gists_url":"https://api.github.com/users/rzane/gists{/gist_id}","starred_url":"https://api.github.com/users/rzane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rzane/subscriptions","organizations_url":"https://api.github.com/users/rzane/orgs","repos_url":"https://api.github.com/users/rzane/repos","events_url":"https://api.github.com/users/rzane/events{/privacy}","received_events_url":"https://api.github.com/users/rzane/received_events","type":"User","site_admin":false},"body":"First of all, awesome gem. It's extremely helpful. It doesn't seem like it's able to display inline attachments, though.\r\n\r\nIn my mailer, I set an inline attachment:\r\n```ruby\r\ndef welcome(user)\r\n  attachments.inline['logo.png'] = File.read(Rails.root.join('app/assets/images/logo.png'))\r\n  mail(to: user.email, subject: 'Example Email')\r\nend\r\n```\r\n\r\nIn my view I display the attachment:\r\n```ruby\r\nimage_tag(attachments['logo.png'].url)\r\n```\r\n\r\nWhen I load up Rails Email Preview, I see this in the js console:\r\n```\r\nGET cid:537643989ad47_f68104fe889515@ray-desktop.mail net::ERR_UNKNOWN_URL_SCHEME \r\n```\r\n\r\nWhen I send the email, everything works as expected, and the image displays. ","created_at":"2014-05-16T18:47:14Z","updated_at":"2014-05-16T18:47:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/glebm/rails_email_preview/pulls/40/commits","review_comments_url":"https://api.github.com/repos/glebm/rails_email_preview/pulls/40/comments","review_comment_url":"https://api.github.com/repos/glebm/rails_email_preview/pulls/comments/{number}","comments_url":"https://api.github.com/repos/glebm/rails_email_preview/issues/40/comments","statuses_url":"https://api.github.com/repos/glebm/rails_email_preview/statuses/9f7f620307176ac21b0a0aba44b7b654ac99a9da","head":{"label":"rzane:attachments","ref":"attachments","sha":"9f7f620307176ac21b0a0aba44b7b654ac99a9da","user":{"login":"rzane","id":2731572,"avatar_url":"https://avatars.githubusercontent.com/u/2731572?","gravatar_id":"4972f78583dc72d265e82c11c0d4f336","url":"https://api.github.com/users/rzane","html_url":"https://github.com/rzane","followers_url":"https://api.github.com/users/rzane/followers","following_url":"https://api.github.com/users/rzane/following{/other_user}","gists_url":"https://api.github.com/users/rzane/gists{/gist_id}","starred_url":"https://api.github.com/users/rzane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rzane/subscriptions","organizations_url":"https://api.github.com/users/rzane/orgs","repos_url":"https://api.github.com/users/rzane/repos","events_url":"https://api.github.com/users/rzane/events{/privacy}","received_events_url":"https://api.github.com/users/rzane/received_events","type":"User","site_admin":false},"repo":{"id":19866819,"name":"rails_email_preview","full_name":"rzane/rails_email_preview","owner":{"login":"rzane","id":2731572,"avatar_url":"https://avatars.githubusercontent.com/u/2731572?","gravatar_id":"4972f78583dc72d265e82c11c0d4f336","url":"https://api.github.com/users/rzane","html_url":"https://github.com/rzane","followers_url":"https://api.github.com/users/rzane/followers","following_url":"https://api.github.com/users/rzane/following{/other_user}","gists_url":"https://api.github.com/users/rzane/gists{/gist_id}","starred_url":"https://api.github.com/users/rzane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rzane/subscriptions","organizations_url":"https://api.github.com/users/rzane/orgs","repos_url":"https://api.github.com/users/rzane/repos","events_url":"https://api.github.com/users/rzane/events{/privacy}","received_events_url":"https://api.github.com/users/rzane/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rzane/rails_email_preview","description":"Preview and edit app mailer templates in Rails.","fork":true,"url":"https://api.github.com/repos/rzane/rails_email_preview","forks_url":"https://api.github.com/repos/rzane/rails_email_preview/forks","keys_url":"https://api.github.com/repos/rzane/rails_email_preview/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rzane/rails_email_preview/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rzane/rails_email_preview/teams","hooks_url":"https://api.github.com/repos/rzane/rails_email_preview/hooks","issue_events_url":"https://api.github.com/repos/rzane/rails_email_preview/issues/events{/number}","events_url":"https://api.github.com/repos/rzane/rails_email_preview/events","assignees_url":"https://api.github.com/repos/rzane/rails_email_preview/assignees{/user}","branches_url":"https://api.github.com/repos/rzane/rails_email_preview/branches{/branch}","tags_url":"https://api.github.com/repos/rzane/rails_email_preview/tags","blobs_url":"https://api.github.com/repos/rzane/rails_email_preview/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rzane/rails_email_preview/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rzane/rails_email_preview/git/refs{/sha}","trees_url":"https://api.github.com/repos/rzane/rails_email_preview/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rzane/rails_email_preview/statuses/{sha}","languages_url":"https://api.github.com/repos/rzane/rails_email_preview/languages","stargazers_url":"https://api.github.com/repos/rzane/rails_email_preview/stargazers","contributors_url":"https://api.github.com/repos/rzane/rails_email_preview/contributors","subscribers_url":"https://api.github.com/repos/rzane/rails_email_preview/subscribers","subscription_url":"https://api.github.com/repos/rzane/rails_email_preview/subscription","commits_url":"https://api.github.com/repos/rzane/rails_email_preview/commits{/sha}","git_commits_url":"https://api.github.com/repos/rzane/rails_email_preview/git/commits{/sha}","comments_url":"https://api.github.com/repos/rzane/rails_email_preview/comments{/number}","issue_comment_url":"https://api.github.com/repos/rzane/rails_email_preview/issues/comments/{number}","contents_url":"https://api.github.com/repos/rzane/rails_email_preview/contents/{+path}","compare_url":"https://api.github.com/repos/rzane/rails_email_preview/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rzane/rails_email_preview/merges","archive_url":"https://api.github.com/repos/rzane/rails_email_preview/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rzane/rails_email_preview/downloads","issues_url":"https://api.github.com/repos/rzane/rails_email_preview/issues{/number}","pulls_url":"https://api.github.com/repos/rzane/rails_email_preview/pulls{/number}","milestones_url":"https://api.github.com/repos/rzane/rails_email_preview/milestones{/number}","notifications_url":"https://api.github.com/repos/rzane/rails_email_preview/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rzane/rails_email_preview/labels{/name}","releases_url":"https://api.github.com/repos/rzane/rails_email_preview/releases{/id}","created_at":"2014-05-16T18:36:34Z","updated_at":"2014-05-16T18:41:24Z","pushed_at":"2014-05-16T18:41:25Z","git_url":"git://github.com/rzane/rails_email_preview.git","ssh_url":"git@github.com:rzane/rails_email_preview.git","clone_url":"https://github.com/rzane/rails_email_preview.git","svn_url":"https://github.com/rzane/rails_email_preview","homepage":"","size":2665,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"glebm:master","ref":"master","sha":"88750b5b80bf2a199e3f71fece27e03609541595","user":{"login":"glebm","id":216339,"avatar_url":"https://avatars.githubusercontent.com/u/216339?","gravatar_id":"729f685b8e8d7e9feed18c177c82e59b","url":"https://api.github.com/users/glebm","html_url":"https://github.com/glebm","followers_url":"https://api.github.com/users/glebm/followers","following_url":"https://api.github.com/users/glebm/following{/other_user}","gists_url":"https://api.github.com/users/glebm/gists{/gist_id}","starred_url":"https://api.github.com/users/glebm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glebm/subscriptions","organizations_url":"https://api.github.com/users/glebm/orgs","repos_url":"https://api.github.com/users/glebm/repos","events_url":"https://api.github.com/users/glebm/events{/privacy}","received_events_url":"https://api.github.com/users/glebm/received_events","type":"User","site_admin":false},"repo":{"id":3306375,"name":"rails_email_preview","full_name":"glebm/rails_email_preview","owner":{"login":"glebm","id":216339,"avatar_url":"https://avatars.githubusercontent.com/u/216339?","gravatar_id":"729f685b8e8d7e9feed18c177c82e59b","url":"https://api.github.com/users/glebm","html_url":"https://github.com/glebm","followers_url":"https://api.github.com/users/glebm/followers","following_url":"https://api.github.com/users/glebm/following{/other_user}","gists_url":"https://api.github.com/users/glebm/gists{/gist_id}","starred_url":"https://api.github.com/users/glebm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glebm/subscriptions","organizations_url":"https://api.github.com/users/glebm/orgs","repos_url":"https://api.github.com/users/glebm/repos","events_url":"https://api.github.com/users/glebm/events{/privacy}","received_events_url":"https://api.github.com/users/glebm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/glebm/rails_email_preview","description":"Preview and edit app mailer templates in Rails.","fork":false,"url":"https://api.github.com/repos/glebm/rails_email_preview","forks_url":"https://api.github.com/repos/glebm/rails_email_preview/forks","keys_url":"https://api.github.com/repos/glebm/rails_email_preview/keys{/key_id}","collaborators_url":"https://api.github.com/repos/glebm/rails_email_preview/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/glebm/rails_email_preview/teams","hooks_url":"https://api.github.com/repos/glebm/rails_email_preview/hooks","issue_events_url":"https://api.github.com/repos/glebm/rails_email_preview/issues/events{/number}","events_url":"https://api.github.com/repos/glebm/rails_email_preview/events","assignees_url":"https://api.github.com/repos/glebm/rails_email_preview/assignees{/user}","branches_url":"https://api.github.com/repos/glebm/rails_email_preview/branches{/branch}","tags_url":"https://api.github.com/repos/glebm/rails_email_preview/tags","blobs_url":"https://api.github.com/repos/glebm/rails_email_preview/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/glebm/rails_email_preview/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/glebm/rails_email_preview/git/refs{/sha}","trees_url":"https://api.github.com/repos/glebm/rails_email_preview/git/trees{/sha}","statuses_url":"https://api.github.com/repos/glebm/rails_email_preview/statuses/{sha}","languages_url":"https://api.github.com/repos/glebm/rails_email_preview/languages","stargazers_url":"https://api.github.com/repos/glebm/rails_email_preview/stargazers","contributors_url":"https://api.github.com/repos/glebm/rails_email_preview/contributors","subscribers_url":"https://api.github.com/repos/glebm/rails_email_preview/subscribers","subscription_url":"https://api.github.com/repos/glebm/rails_email_preview/subscription","commits_url":"https://api.github.com/repos/glebm/rails_email_preview/commits{/sha}","git_commits_url":"https://api.github.com/repos/glebm/rails_email_preview/git/commits{/sha}","comments_url":"https://api.github.com/repos/glebm/rails_email_preview/comments{/number}","issue_comment_url":"https://api.github.com/repos/glebm/rails_email_preview/issues/comments/{number}","contents_url":"https://api.github.com/repos/glebm/rails_email_preview/contents/{+path}","compare_url":"https://api.github.com/repos/glebm/rails_email_preview/compare/{base}...{head}","merges_url":"https://api.github.com/repos/glebm/rails_email_preview/merges","archive_url":"https://api.github.com/repos/glebm/rails_email_preview/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/glebm/rails_email_preview/downloads","issues_url":"https://api.github.com/repos/glebm/rails_email_preview/issues{/number}","pulls_url":"https://api.github.com/repos/glebm/rails_email_preview/pulls{/number}","milestones_url":"https://api.github.com/repos/glebm/rails_email_preview/milestones{/number}","notifications_url":"https://api.github.com/repos/glebm/rails_email_preview/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/glebm/rails_email_preview/labels{/name}","releases_url":"https://api.github.com/repos/glebm/rails_email_preview/releases{/id}","created_at":"2012-01-30T16:11:31Z","updated_at":"2014-05-13T01:32:42Z","pushed_at":"2014-03-19T09:01:43Z","git_url":"git://github.com/glebm/rails_email_preview.git","ssh_url":"git@github.com:glebm/rails_email_preview.git","clone_url":"https://github.com/glebm/rails_email_preview.git","svn_url":"https://github.com/glebm/rails_email_preview","homepage":"","size":2665,"stargazers_count":244,"watchers_count":244,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":20,"mirror_url":null,"open_issues_count":6,"forks":20,"open_issues":6,"watchers":244,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/glebm/rails_email_preview/pulls/40"},"html":{"href":"https://github.com/glebm/rails_email_preview/pull/40"},"issue":{"href":"https://api.github.com/repos/glebm/rails_email_preview/issues/40"},"comments":{"href":"https://api.github.com/repos/glebm/rails_email_preview/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/glebm/rails_email_preview/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/glebm/rails_email_preview/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/glebm/rails_email_preview/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/glebm/rails_email_preview/statuses/9f7f620307176ac21b0a0aba44b7b654ac99a9da"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":51,"deletions":8,"changed_files":5}}