{"action":"created","comment":{"url":"https://api.github.com/repos/Ada-C4/typo/pulls/comments/57976511","id":57976511,"diff_hunk":"@@ -37,6 +37,24 @@ def edit\n     new_or_edit\n   end\n \n+  def reverse\n+    @article = Article.find(params[:id])\n+    if @article != nil\n+      text = @article.body\n+      split_text = text.split\n+      split_text.reverse!\n+      reverse_string = \"\"\n+      split_text.each do |word|","path":"app/controllers/admin/content_controller.rb","position":null,"original_position":20,"commit_id":"cfe2958f552615702a77243dd12786710d9dd276","original_commit_id":"25a83d9da9b87eaaf88fd189597c1efdf5063602","user":{"login":"kariabancroft","id":7269204,"avatar_url":"https://avatars.githubusercontent.com/u/7269204?v=3","gravatar_id":"","url":"https://api.github.com/users/kariabancroft","html_url":"https://github.com/kariabancroft","followers_url":"https://api.github.com/users/kariabancroft/followers","following_url":"https://api.github.com/users/kariabancroft/following{/other_user}","gists_url":"https://api.github.com/users/kariabancroft/gists{/gist_id}","starred_url":"https://api.github.com/users/kariabancroft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kariabancroft/subscriptions","organizations_url":"https://api.github.com/users/kariabancroft/orgs","repos_url":"https://api.github.com/users/kariabancroft/repos","events_url":"https://api.github.com/users/kariabancroft/events{/privacy}","received_events_url":"https://api.github.com/users/kariabancroft/received_events","type":"User","site_admin":false},"body":"Yes you can delete them","created_at":"2016-03-30T22:43:33Z","updated_at":"2016-03-30T22:43:33Z","html_url":"https://github.com/Ada-C4/typo/pull/22#discussion_r57976511","pull_request_url":"https://api.github.com/repos/Ada-C4/typo/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/Ada-C4/typo/pulls/comments/57976511"},"html":{"href":"https://github.com/Ada-C4/typo/pull/22#discussion_r57976511"},"pull_request":{"href":"https://api.github.com/repos/Ada-C4/typo/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/Ada-C4/typo/pulls/22","id":64658114,"html_url":"https://github.com/Ada-C4/typo/pull/22","diff_url":"https://github.com/Ada-C4/typo/pull/22.diff","patch_url":"https://github.com/Ada-C4/typo/pull/22.patch","issue_url":"https://api.github.com/repos/Ada-C4/typo/issues/22","number":22,"state":"open","locked":false,"title":"New feature - Reverse post :-)","user":{"login":"TamarHershi","id":13411755,"avatar_url":"https://avatars.githubusercontent.com/u/13411755?v=3","gravatar_id":"","url":"https://api.github.com/users/TamarHershi","html_url":"https://github.com/TamarHershi","followers_url":"https://api.github.com/users/TamarHershi/followers","following_url":"https://api.github.com/users/TamarHershi/following{/other_user}","gists_url":"https://api.github.com/users/TamarHershi/gists{/gist_id}","starred_url":"https://api.github.com/users/TamarHershi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TamarHershi/subscriptions","organizations_url":"https://api.github.com/users/TamarHershi/orgs","repos_url":"https://api.github.com/users/TamarHershi/repos","events_url":"https://api.github.com/users/TamarHershi/events{/privacy}","received_events_url":"https://api.github.com/users/TamarHershi/received_events","type":"User","site_admin":false},"body":"So it's not what we were supposed to do, but still a sweet feature that works + passing cucumber tests.\r\n\r\nWhen you go to admin/content page , just where you can edit/show /delete your post - you'll notice a new button \"Revers\" .\r\nOnce you'll push it, the words in your post will show in the reverse order :) \r\n\r\nYou can always get the origin post back by pushing the revers button again! \r\nLink for Heroku site:\r\n https://pure-crag-95718.herokuapp.com/admin/content","created_at":"2016-03-30T16:36:28Z","updated_at":"2016-03-30T22:43:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fccf81f2d1c844f99e262cda6a08ddf38a287962","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Ada-C4/typo/pulls/22/commits","review_comments_url":"https://api.github.com/repos/Ada-C4/typo/pulls/22/comments","review_comment_url":"https://api.github.com/repos/Ada-C4/typo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ada-C4/typo/issues/22/comments","statuses_url":"https://api.github.com/repos/Ada-C4/typo/statuses/cfe2958f552615702a77243dd12786710d9dd276","head":{"label":"TamarHershi:master","ref":"master","sha":"cfe2958f552615702a77243dd12786710d9dd276","user":{"login":"TamarHershi","id":13411755,"avatar_url":"https://avatars.githubusercontent.com/u/13411755?v=3","gravatar_id":"","url":"https://api.github.com/users/TamarHershi","html_url":"https://github.com/TamarHershi","followers_url":"https://api.github.com/users/TamarHershi/followers","following_url":"https://api.github.com/users/TamarHershi/following{/other_user}","gists_url":"https://api.github.com/users/TamarHershi/gists{/gist_id}","starred_url":"https://api.github.com/users/TamarHershi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TamarHershi/subscriptions","organizations_url":"https://api.github.com/users/TamarHershi/orgs","repos_url":"https://api.github.com/users/TamarHershi/repos","events_url":"https://api.github.com/users/TamarHershi/events{/privacy}","received_events_url":"https://api.github.com/users/TamarHershi/received_events","type":"User","site_admin":false},"repo":{"id":54907370,"name":"typo","full_name":"TamarHershi/typo","owner":{"login":"TamarHershi","id":13411755,"avatar_url":"https://avatars.githubusercontent.com/u/13411755?v=3","gravatar_id":"","url":"https://api.github.com/users/TamarHershi","html_url":"https://github.com/TamarHershi","followers_url":"https://api.github.com/users/TamarHershi/followers","following_url":"https://api.github.com/users/TamarHershi/following{/other_user}","gists_url":"https://api.github.com/users/TamarHershi/gists{/gist_id}","starred_url":"https://api.github.com/users/TamarHershi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TamarHershi/subscriptions","organizations_url":"https://api.github.com/users/TamarHershi/orgs","repos_url":"https://api.github.com/users/TamarHershi/repos","events_url":"https://api.github.com/users/TamarHershi/events{/privacy}","received_events_url":"https://api.github.com/users/TamarHershi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TamarHershi/typo","description":"Typo is the oldest and most powerful Ruby on Rails blogware, providing custom templates, powerful drag and drop plugins API, advanced SEO capabilities, XMLRPC API and many more.","fork":true,"url":"https://api.github.com/repos/TamarHershi/typo","forks_url":"https://api.github.com/repos/TamarHershi/typo/forks","keys_url":"https://api.github.com/repos/TamarHershi/typo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TamarHershi/typo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TamarHershi/typo/teams","hooks_url":"https://api.github.com/repos/TamarHershi/typo/hooks","issue_events_url":"https://api.github.com/repos/TamarHershi/typo/issues/events{/number}","events_url":"https://api.github.com/repos/TamarHershi/typo/events","assignees_url":"https://api.github.com/repos/TamarHershi/typo/assignees{/user}","branches_url":"https://api.github.com/repos/TamarHershi/typo/branches{/branch}","tags_url":"https://api.github.com/repos/TamarHershi/typo/tags","blobs_url":"https://api.github.com/repos/TamarHershi/typo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TamarHershi/typo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TamarHershi/typo/git/refs{/sha}","trees_url":"https://api.github.com/repos/TamarHershi/typo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TamarHershi/typo/statuses/{sha}","languages_url":"https://api.github.com/repos/TamarHershi/typo/languages","stargazers_url":"https://api.github.com/repos/TamarHershi/typo/stargazers","contributors_url":"https://api.github.com/repos/TamarHershi/typo/contributors","subscribers_url":"https://api.github.com/repos/TamarHershi/typo/subscribers","subscription_url":"https://api.github.com/repos/TamarHershi/typo/subscription","commits_url":"https://api.github.com/repos/TamarHershi/typo/commits{/sha}","git_commits_url":"https://api.github.com/repos/TamarHershi/typo/git/commits{/sha}","comments_url":"https://api.github.com/repos/TamarHershi/typo/comments{/number}","issue_comment_url":"https://api.github.com/repos/TamarHershi/typo/issues/comments{/number}","contents_url":"https://api.github.com/repos/TamarHershi/typo/contents/{+path}","compare_url":"https://api.github.com/repos/TamarHershi/typo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TamarHershi/typo/merges","archive_url":"https://api.github.com/repos/TamarHershi/typo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TamarHershi/typo/downloads","issues_url":"https://api.github.com/repos/TamarHershi/typo/issues{/number}","pulls_url":"https://api.github.com/repos/TamarHershi/typo/pulls{/number}","milestones_url":"https://api.github.com/repos/TamarHershi/typo/milestones{/number}","notifications_url":"https://api.github.com/repos/TamarHershi/typo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TamarHershi/typo/labels{/name}","releases_url":"https://api.github.com/repos/TamarHershi/typo/releases{/id}","deployments_url":"https://api.github.com/repos/TamarHershi/typo/deployments","created_at":"2016-03-28T16:48:27Z","updated_at":"2016-03-28T16:48:30Z","pushed_at":"2016-03-30T21:51:49Z","git_url":"git://github.com/TamarHershi/typo.git","ssh_url":"git@github.com:TamarHershi/typo.git","clone_url":"https://github.com/TamarHershi/typo.git","svn_url":"https://github.com/TamarHershi/typo","homepage":"http://typosphere.org","size":20181,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Ada-C4:master","ref":"master","sha":"b99f49e64ef433387b9d6e365d4f5caaf25d1529","user":{"login":"Ada-C4","id":14096372,"avatar_url":"https://avatars.githubusercontent.com/u/14096372?v=3","gravatar_id":"","url":"https://api.github.com/users/Ada-C4","html_url":"https://github.com/Ada-C4","followers_url":"https://api.github.com/users/Ada-C4/followers","following_url":"https://api.github.com/users/Ada-C4/following{/other_user}","gists_url":"https://api.github.com/users/Ada-C4/gists{/gist_id}","starred_url":"https://api.github.com/users/Ada-C4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ada-C4/subscriptions","organizations_url":"https://api.github.com/users/Ada-C4/orgs","repos_url":"https://api.github.com/users/Ada-C4/repos","events_url":"https://api.github.com/users/Ada-C4/events{/privacy}","received_events_url":"https://api.github.com/users/Ada-C4/received_events","type":"Organization","site_admin":false},"repo":{"id":54869440,"name":"typo","full_name":"Ada-C4/typo","owner":{"login":"Ada-C4","id":14096372,"avatar_url":"https://avatars.githubusercontent.com/u/14096372?v=3","gravatar_id":"","url":"https://api.github.com/users/Ada-C4","html_url":"https://github.com/Ada-C4","followers_url":"https://api.github.com/users/Ada-C4/followers","following_url":"https://api.github.com/users/Ada-C4/following{/other_user}","gists_url":"https://api.github.com/users/Ada-C4/gists{/gist_id}","starred_url":"https://api.github.com/users/Ada-C4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ada-C4/subscriptions","organizations_url":"https://api.github.com/users/Ada-C4/orgs","repos_url":"https://api.github.com/users/Ada-C4/repos","events_url":"https://api.github.com/users/Ada-C4/events{/privacy}","received_events_url":"https://api.github.com/users/Ada-C4/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Ada-C4/typo","description":"Typo is the oldest and most powerful Ruby on Rails blogware, providing custom templates, powerful drag and drop plugins API, advanced SEO capabilities, XMLRPC API and many more.","fork":true,"url":"https://api.github.com/repos/Ada-C4/typo","forks_url":"https://api.github.com/repos/Ada-C4/typo/forks","keys_url":"https://api.github.com/repos/Ada-C4/typo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ada-C4/typo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ada-C4/typo/teams","hooks_url":"https://api.github.com/repos/Ada-C4/typo/hooks","issue_events_url":"https://api.github.com/repos/Ada-C4/typo/issues/events{/number}","events_url":"https://api.github.com/repos/Ada-C4/typo/events","assignees_url":"https://api.github.com/repos/Ada-C4/typo/assignees{/user}","branches_url":"https://api.github.com/repos/Ada-C4/typo/branches{/branch}","tags_url":"https://api.github.com/repos/Ada-C4/typo/tags","blobs_url":"https://api.github.com/repos/Ada-C4/typo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ada-C4/typo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ada-C4/typo/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ada-C4/typo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ada-C4/typo/statuses/{sha}","languages_url":"https://api.github.com/repos/Ada-C4/typo/languages","stargazers_url":"https://api.github.com/repos/Ada-C4/typo/stargazers","contributors_url":"https://api.github.com/repos/Ada-C4/typo/contributors","subscribers_url":"https://api.github.com/repos/Ada-C4/typo/subscribers","subscription_url":"https://api.github.com/repos/Ada-C4/typo/subscription","commits_url":"https://api.github.com/repos/Ada-C4/typo/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ada-C4/typo/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ada-C4/typo/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ada-C4/typo/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ada-C4/typo/contents/{+path}","compare_url":"https://api.github.com/repos/Ada-C4/typo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ada-C4/typo/merges","archive_url":"https://api.github.com/repos/Ada-C4/typo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ada-C4/typo/downloads","issues_url":"https://api.github.com/repos/Ada-C4/typo/issues{/number}","pulls_url":"https://api.github.com/repos/Ada-C4/typo/pulls{/number}","milestones_url":"https://api.github.com/repos/Ada-C4/typo/milestones{/number}","notifications_url":"https://api.github.com/repos/Ada-C4/typo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ada-C4/typo/labels{/name}","releases_url":"https://api.github.com/repos/Ada-C4/typo/releases{/id}","deployments_url":"https://api.github.com/repos/Ada-C4/typo/deployments","created_at":"2016-03-28T05:59:11Z","updated_at":"2016-03-28T05:59:15Z","pushed_at":"2016-03-30T22:32:21Z","git_url":"git://github.com/Ada-C4/typo.git","ssh_url":"git@github.com:Ada-C4/typo.git","clone_url":"https://github.com/Ada-C4/typo.git","svn_url":"https://github.com/Ada-C4/typo","homepage":"http://typosphere.org","size":18013,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":8,"forks":22,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ada-C4/typo/pulls/22"},"html":{"href":"https://github.com/Ada-C4/typo/pull/22"},"issue":{"href":"https://api.github.com/repos/Ada-C4/typo/issues/22"},"comments":{"href":"https://api.github.com/repos/Ada-C4/typo/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/Ada-C4/typo/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/Ada-C4/typo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ada-C4/typo/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/Ada-C4/typo/statuses/cfe2958f552615702a77243dd12786710d9dd276"}}}}