{"action":"created","comment":{"url":"https://api.github.com/repos/refile/refile/pulls/comments/173771868","pull_request_review_id":103012839,"id":173771868,"diff_hunk":"@@ -426,6 +426,29 @@ There's also a helper for generating image tags:\n <%= attachment_image_tag(@user, :profile_image, :fill, 300, 300) %>\n ```\n \n+You can also provide a limit to the image:\n+\n+``` erb\n+<%= link_to \"Image\", attachment_url(@user, :profile_image, :limit, 400, 500) %>\n+```\n+\n+If you don't care about the aspect ration and want an exact dimension, you can use `!`:\n+\n+``` erb\n+<%= link_to \"Image\", attachment_url(@user, :profile_image, :limit, 400, \"1000!\") %>\n+```\n+\n+keep in mind that it's also important to remember you can not scretch the image, even you set","path":"README.md","position":16,"original_position":16,"commit_id":"4beaf2ae258fe8c09a55f097e07c4c6b3bf5f0e9","original_commit_id":"4beaf2ae258fe8c09a55f097e07c4c6b3bf5f0e9","user":{"login":"sobrinho","id":26460,"avatar_url":"https://avatars1.githubusercontent.com/u/26460?v=4","gravatar_id":"","url":"https://api.github.com/users/sobrinho","html_url":"https://github.com/sobrinho","followers_url":"https://api.github.com/users/sobrinho/followers","following_url":"https://api.github.com/users/sobrinho/following{/other_user}","gists_url":"https://api.github.com/users/sobrinho/gists{/gist_id}","starred_url":"https://api.github.com/users/sobrinho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sobrinho/subscriptions","organizations_url":"https://api.github.com/users/sobrinho/orgs","repos_url":"https://api.github.com/users/sobrinho/repos","events_url":"https://api.github.com/users/sobrinho/events{/privacy}","received_events_url":"https://api.github.com/users/sobrinho/received_events","type":"User","site_admin":false},"body":"keep -> Keep","created_at":"2018-03-12T11:57:38Z","updated_at":"2018-03-12T11:58:07Z","html_url":"https://github.com/refile/refile/pull/568#discussion_r173771868","pull_request_url":"https://api.github.com/repos/refile/refile/pulls/568","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/refile/refile/pulls/comments/173771868"},"html":{"href":"https://github.com/refile/refile/pull/568#discussion_r173771868"},"pull_request":{"href":"https://api.github.com/repos/refile/refile/pulls/568"}}},"pull_request":{"url":"https://api.github.com/repos/refile/refile/pulls/568","id":174026444,"html_url":"https://github.com/refile/refile/pull/568","diff_url":"https://github.com/refile/refile/pull/568.diff","patch_url":"https://github.com/refile/refile/pull/568.patch","issue_url":"https://api.github.com/repos/refile/refile/issues/568","number":568,"state":"open","locked":false,"title":"Add limit examples","user":{"login":"br-silva","id":24780712,"avatar_url":"https://avatars3.githubusercontent.com/u/24780712?v=4","gravatar_id":"","url":"https://api.github.com/users/br-silva","html_url":"https://github.com/br-silva","followers_url":"https://api.github.com/users/br-silva/followers","following_url":"https://api.github.com/users/br-silva/following{/other_user}","gists_url":"https://api.github.com/users/br-silva/gists{/gist_id}","starred_url":"https://api.github.com/users/br-silva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/br-silva/subscriptions","organizations_url":"https://api.github.com/users/br-silva/orgs","repos_url":"https://api.github.com/users/br-silva/repos","events_url":"https://api.github.com/users/br-silva/events{/privacy}","received_events_url":"https://api.github.com/users/br-silva/received_events","type":"User","site_admin":false},"body":"This closes https://github.com/refile/refile/issues/553","created_at":"2018-03-09T15:01:10Z","updated_at":"2018-03-12T11:58:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7ea78862a135d63b2d3d10d212506f04399fc2f2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/refile/refile/pulls/568/commits","review_comments_url":"https://api.github.com/repos/refile/refile/pulls/568/comments","review_comment_url":"https://api.github.com/repos/refile/refile/pulls/comments{/number}","comments_url":"https://api.github.com/repos/refile/refile/issues/568/comments","statuses_url":"https://api.github.com/repos/refile/refile/statuses/4beaf2ae258fe8c09a55f097e07c4c6b3bf5f0e9","head":{"label":"br-silva:doc/add_limit_examples","ref":"doc/add_limit_examples","sha":"4beaf2ae258fe8c09a55f097e07c4c6b3bf5f0e9","user":{"login":"br-silva","id":24780712,"avatar_url":"https://avatars3.githubusercontent.com/u/24780712?v=4","gravatar_id":"","url":"https://api.github.com/users/br-silva","html_url":"https://github.com/br-silva","followers_url":"https://api.github.com/users/br-silva/followers","following_url":"https://api.github.com/users/br-silva/following{/other_user}","gists_url":"https://api.github.com/users/br-silva/gists{/gist_id}","starred_url":"https://api.github.com/users/br-silva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/br-silva/subscriptions","organizations_url":"https://api.github.com/users/br-silva/orgs","repos_url":"https://api.github.com/users/br-silva/repos","events_url":"https://api.github.com/users/br-silva/events{/privacy}","received_events_url":"https://api.github.com/users/br-silva/received_events","type":"User","site_admin":false},"repo":{"id":124277539,"name":"refile","full_name":"br-silva/refile","owner":{"login":"br-silva","id":24780712,"avatar_url":"https://avatars3.githubusercontent.com/u/24780712?v=4","gravatar_id":"","url":"https://api.github.com/users/br-silva","html_url":"https://github.com/br-silva","followers_url":"https://api.github.com/users/br-silva/followers","following_url":"https://api.github.com/users/br-silva/following{/other_user}","gists_url":"https://api.github.com/users/br-silva/gists{/gist_id}","starred_url":"https://api.github.com/users/br-silva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/br-silva/subscriptions","organizations_url":"https://api.github.com/users/br-silva/orgs","repos_url":"https://api.github.com/users/br-silva/repos","events_url":"https://api.github.com/users/br-silva/events{/privacy}","received_events_url":"https://api.github.com/users/br-silva/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/br-silva/refile","description":"Ruby file uploads, take 3","fork":true,"url":"https://api.github.com/repos/br-silva/refile","forks_url":"https://api.github.com/repos/br-silva/refile/forks","keys_url":"https://api.github.com/repos/br-silva/refile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/br-silva/refile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/br-silva/refile/teams","hooks_url":"https://api.github.com/repos/br-silva/refile/hooks","issue_events_url":"https://api.github.com/repos/br-silva/refile/issues/events{/number}","events_url":"https://api.github.com/repos/br-silva/refile/events","assignees_url":"https://api.github.com/repos/br-silva/refile/assignees{/user}","branches_url":"https://api.github.com/repos/br-silva/refile/branches{/branch}","tags_url":"https://api.github.com/repos/br-silva/refile/tags","blobs_url":"https://api.github.com/repos/br-silva/refile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/br-silva/refile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/br-silva/refile/git/refs{/sha}","trees_url":"https://api.github.com/repos/br-silva/refile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/br-silva/refile/statuses/{sha}","languages_url":"https://api.github.com/repos/br-silva/refile/languages","stargazers_url":"https://api.github.com/repos/br-silva/refile/stargazers","contributors_url":"https://api.github.com/repos/br-silva/refile/contributors","subscribers_url":"https://api.github.com/repos/br-silva/refile/subscribers","subscription_url":"https://api.github.com/repos/br-silva/refile/subscription","commits_url":"https://api.github.com/repos/br-silva/refile/commits{/sha}","git_commits_url":"https://api.github.com/repos/br-silva/refile/git/commits{/sha}","comments_url":"https://api.github.com/repos/br-silva/refile/comments{/number}","issue_comment_url":"https://api.github.com/repos/br-silva/refile/issues/comments{/number}","contents_url":"https://api.github.com/repos/br-silva/refile/contents/{+path}","compare_url":"https://api.github.com/repos/br-silva/refile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/br-silva/refile/merges","archive_url":"https://api.github.com/repos/br-silva/refile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/br-silva/refile/downloads","issues_url":"https://api.github.com/repos/br-silva/refile/issues{/number}","pulls_url":"https://api.github.com/repos/br-silva/refile/pulls{/number}","milestones_url":"https://api.github.com/repos/br-silva/refile/milestones{/number}","notifications_url":"https://api.github.com/repos/br-silva/refile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/br-silva/refile/labels{/name}","releases_url":"https://api.github.com/repos/br-silva/refile/releases{/id}","deployments_url":"https://api.github.com/repos/br-silva/refile/deployments","created_at":"2018-03-07T18:29:29Z","updated_at":"2018-03-07T18:29:30Z","pushed_at":"2018-03-11T17:41:18Z","git_url":"git://github.com/br-silva/refile.git","ssh_url":"git@github.com:br-silva/refile.git","clone_url":"https://github.com/br-silva/refile.git","svn_url":"https://github.com/br-silva/refile","homepage":"","size":870,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"refile:master","ref":"master","sha":"0bce2100aecc45af43cd0ddcf2725de90d7a1707","user":{"login":"refile","id":10529093,"avatar_url":"https://avatars2.githubusercontent.com/u/10529093?v=4","gravatar_id":"","url":"https://api.github.com/users/refile","html_url":"https://github.com/refile","followers_url":"https://api.github.com/users/refile/followers","following_url":"https://api.github.com/users/refile/following{/other_user}","gists_url":"https://api.github.com/users/refile/gists{/gist_id}","starred_url":"https://api.github.com/users/refile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/refile/subscriptions","organizations_url":"https://api.github.com/users/refile/orgs","repos_url":"https://api.github.com/users/refile/repos","events_url":"https://api.github.com/users/refile/events{/privacy}","received_events_url":"https://api.github.com/users/refile/received_events","type":"Organization","site_admin":false},"repo":{"id":26870928,"name":"refile","full_name":"refile/refile","owner":{"login":"refile","id":10529093,"avatar_url":"https://avatars2.githubusercontent.com/u/10529093?v=4","gravatar_id":"","url":"https://api.github.com/users/refile","html_url":"https://github.com/refile","followers_url":"https://api.github.com/users/refile/followers","following_url":"https://api.github.com/users/refile/following{/other_user}","gists_url":"https://api.github.com/users/refile/gists{/gist_id}","starred_url":"https://api.github.com/users/refile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/refile/subscriptions","organizations_url":"https://api.github.com/users/refile/orgs","repos_url":"https://api.github.com/users/refile/repos","events_url":"https://api.github.com/users/refile/events{/privacy}","received_events_url":"https://api.github.com/users/refile/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/refile/refile","description":"Ruby file uploads, take 3","fork":false,"url":"https://api.github.com/repos/refile/refile","forks_url":"https://api.github.com/repos/refile/refile/forks","keys_url":"https://api.github.com/repos/refile/refile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/refile/refile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/refile/refile/teams","hooks_url":"https://api.github.com/repos/refile/refile/hooks","issue_events_url":"https://api.github.com/repos/refile/refile/issues/events{/number}","events_url":"https://api.github.com/repos/refile/refile/events","assignees_url":"https://api.github.com/repos/refile/refile/assignees{/user}","branches_url":"https://api.github.com/repos/refile/refile/branches{/branch}","tags_url":"https://api.github.com/repos/refile/refile/tags","blobs_url":"https://api.github.com/repos/refile/refile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/refile/refile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/refile/refile/git/refs{/sha}","trees_url":"https://api.github.com/repos/refile/refile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/refile/refile/statuses/{sha}","languages_url":"https://api.github.com/repos/refile/refile/languages","stargazers_url":"https://api.github.com/repos/refile/refile/stargazers","contributors_url":"https://api.github.com/repos/refile/refile/contributors","subscribers_url":"https://api.github.com/repos/refile/refile/subscribers","subscription_url":"https://api.github.com/repos/refile/refile/subscription","commits_url":"https://api.github.com/repos/refile/refile/commits{/sha}","git_commits_url":"https://api.github.com/repos/refile/refile/git/commits{/sha}","comments_url":"https://api.github.com/repos/refile/refile/comments{/number}","issue_comment_url":"https://api.github.com/repos/refile/refile/issues/comments{/number}","contents_url":"https://api.github.com/repos/refile/refile/contents/{+path}","compare_url":"https://api.github.com/repos/refile/refile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/refile/refile/merges","archive_url":"https://api.github.com/repos/refile/refile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/refile/refile/downloads","issues_url":"https://api.github.com/repos/refile/refile/issues{/number}","pulls_url":"https://api.github.com/repos/refile/refile/pulls{/number}","milestones_url":"https://api.github.com/repos/refile/refile/milestones{/number}","notifications_url":"https://api.github.com/repos/refile/refile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/refile/refile/labels{/name}","releases_url":"https://api.github.com/repos/refile/refile/releases{/id}","deployments_url":"https://api.github.com/repos/refile/refile/deployments","created_at":"2014-11-19T16:41:22Z","updated_at":"2018-03-12T09:54:34Z","pushed_at":"2018-03-11T17:41:19Z","git_url":"git://github.com/refile/refile.git","ssh_url":"git@github.com:refile/refile.git","clone_url":"https://github.com/refile/refile.git","svn_url":"https://github.com/refile/refile","homepage":"","size":868,"stargazers_count":2427,"watchers_count":2427,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":254,"mirror_url":null,"archived":false,"open_issues_count":21,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":254,"open_issues":21,"watchers":2427,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/refile/refile/pulls/568"},"html":{"href":"https://github.com/refile/refile/pull/568"},"issue":{"href":"https://api.github.com/repos/refile/refile/issues/568"},"comments":{"href":"https://api.github.com/repos/refile/refile/issues/568/comments"},"review_comments":{"href":"https://api.github.com/repos/refile/refile/pulls/568/comments"},"review_comment":{"href":"https://api.github.com/repos/refile/refile/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/refile/refile/pulls/568/commits"},"statuses":{"href":"https://api.github.com/repos/refile/refile/statuses/4beaf2ae258fe8c09a55f097e07c4c6b3bf5f0e9"}},"author_association":"NONE"}}
{"actor":{"display_login":"sobrinho"}}