{"action":"created","comment":{"url":"https://api.github.com/repos/dbalexandre/trading/pulls/comments/34005848","id":34005848,"diff_hunk":"@@ -0,0 +1,28 @@\n+class BidsController < ApplicationController\n+  layout \"dashboard\"\n+\n+  def index\n+    @bids = Bid.most_recent.available(current_user)\n+  end\n+\n+  def new\n+    @bid = current_user.bids.build\n+  end\n+\n+  def create\n+    @bid = current_user.bids.build(bid_params)\n+\n+    if @bid.save\n+      redirect_to bids_path\n+    else\n+      render :new\n+    end\n+  end\n+\n+  private\n+\n+  def bid_params\n+    params.require(:bid).permit(:product, :quantity, :price, :city, :state,\n+      :payment_type, :number_of_days)","path":"app/controllers/bids_controller.rb","position":26,"original_position":26,"commit_id":"7bed7977672fbfa974bd041d75d25336c84a8700","original_commit_id":"7bed7977672fbfa974bd041d75d25336c84a8700","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Align the parameters of a method call if they span more than one line.","created_at":"2015-07-07T03:40:41Z","updated_at":"2015-07-07T03:40:41Z","html_url":"https://github.com/dbalexandre/trading/pull/9#discussion_r34005848","pull_request_url":"https://api.github.com/repos/dbalexandre/trading/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/dbalexandre/trading/pulls/comments/34005848"},"html":{"href":"https://github.com/dbalexandre/trading/pull/9#discussion_r34005848"},"pull_request":{"href":"https://api.github.com/repos/dbalexandre/trading/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/dbalexandre/trading/pulls/9","id":39332451,"html_url":"https://github.com/dbalexandre/trading/pull/9","diff_url":"https://github.com/dbalexandre/trading/pull/9.diff","patch_url":"https://github.com/dbalexandre/trading/pull/9.patch","issue_url":"https://api.github.com/repos/dbalexandre/trading/issues/9","number":9,"state":"open","locked":false,"title":"Allow user to create a bid","user":{"login":"dbalexandre","id":2815,"avatar_url":"https://avatars.githubusercontent.com/u/2815?v=3","gravatar_id":"","url":"https://api.github.com/users/dbalexandre","html_url":"https://github.com/dbalexandre","followers_url":"https://api.github.com/users/dbalexandre/followers","following_url":"https://api.github.com/users/dbalexandre/following{/other_user}","gists_url":"https://api.github.com/users/dbalexandre/gists{/gist_id}","starred_url":"https://api.github.com/users/dbalexandre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbalexandre/subscriptions","organizations_url":"https://api.github.com/users/dbalexandre/orgs","repos_url":"https://api.github.com/users/dbalexandre/repos","events_url":"https://api.github.com/users/dbalexandre/events{/privacy}","received_events_url":"https://api.github.com/users/dbalexandre/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-07T03:40:33Z","updated_at":"2015-07-07T03:40:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6d5a3a2156c0978cbb973ed47f05a191db8ffc0a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dbalexandre/trading/pulls/9/commits","review_comments_url":"https://api.github.com/repos/dbalexandre/trading/pulls/9/comments","review_comment_url":"https://api.github.com/repos/dbalexandre/trading/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dbalexandre/trading/issues/9/comments","statuses_url":"https://api.github.com/repos/dbalexandre/trading/statuses/7bed7977672fbfa974bd041d75d25336c84a8700","head":{"label":"dbalexandre:bids","ref":"bids","sha":"7bed7977672fbfa974bd041d75d25336c84a8700","user":{"login":"dbalexandre","id":2815,"avatar_url":"https://avatars.githubusercontent.com/u/2815?v=3","gravatar_id":"","url":"https://api.github.com/users/dbalexandre","html_url":"https://github.com/dbalexandre","followers_url":"https://api.github.com/users/dbalexandre/followers","following_url":"https://api.github.com/users/dbalexandre/following{/other_user}","gists_url":"https://api.github.com/users/dbalexandre/gists{/gist_id}","starred_url":"https://api.github.com/users/dbalexandre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbalexandre/subscriptions","organizations_url":"https://api.github.com/users/dbalexandre/orgs","repos_url":"https://api.github.com/users/dbalexandre/repos","events_url":"https://api.github.com/users/dbalexandre/events{/privacy}","received_events_url":"https://api.github.com/users/dbalexandre/received_events","type":"User","site_admin":false},"repo":{"id":32831294,"name":"trading","full_name":"dbalexandre/trading","owner":{"login":"dbalexandre","id":2815,"avatar_url":"https://avatars.githubusercontent.com/u/2815?v=3","gravatar_id":"","url":"https://api.github.com/users/dbalexandre","html_url":"https://github.com/dbalexandre","followers_url":"https://api.github.com/users/dbalexandre/followers","following_url":"https://api.github.com/users/dbalexandre/following{/other_user}","gists_url":"https://api.github.com/users/dbalexandre/gists{/gist_id}","starred_url":"https://api.github.com/users/dbalexandre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbalexandre/subscriptions","organizations_url":"https://api.github.com/users/dbalexandre/orgs","repos_url":"https://api.github.com/users/dbalexandre/repos","events_url":"https://api.github.com/users/dbalexandre/events{/privacy}","received_events_url":"https://api.github.com/users/dbalexandre/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dbalexandre/trading","description":"","fork":false,"url":"https://api.github.com/repos/dbalexandre/trading","forks_url":"https://api.github.com/repos/dbalexandre/trading/forks","keys_url":"https://api.github.com/repos/dbalexandre/trading/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dbalexandre/trading/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dbalexandre/trading/teams","hooks_url":"https://api.github.com/repos/dbalexandre/trading/hooks","issue_events_url":"https://api.github.com/repos/dbalexandre/trading/issues/events{/number}","events_url":"https://api.github.com/repos/dbalexandre/trading/events","assignees_url":"https://api.github.com/repos/dbalexandre/trading/assignees{/user}","branches_url":"https://api.github.com/repos/dbalexandre/trading/branches{/branch}","tags_url":"https://api.github.com/repos/dbalexandre/trading/tags","blobs_url":"https://api.github.com/repos/dbalexandre/trading/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dbalexandre/trading/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dbalexandre/trading/git/refs{/sha}","trees_url":"https://api.github.com/repos/dbalexandre/trading/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dbalexandre/trading/statuses/{sha}","languages_url":"https://api.github.com/repos/dbalexandre/trading/languages","stargazers_url":"https://api.github.com/repos/dbalexandre/trading/stargazers","contributors_url":"https://api.github.com/repos/dbalexandre/trading/contributors","subscribers_url":"https://api.github.com/repos/dbalexandre/trading/subscribers","subscription_url":"https://api.github.com/repos/dbalexandre/trading/subscription","commits_url":"https://api.github.com/repos/dbalexandre/trading/commits{/sha}","git_commits_url":"https://api.github.com/repos/dbalexandre/trading/git/commits{/sha}","comments_url":"https://api.github.com/repos/dbalexandre/trading/comments{/number}","issue_comment_url":"https://api.github.com/repos/dbalexandre/trading/issues/comments{/number}","contents_url":"https://api.github.com/repos/dbalexandre/trading/contents/{+path}","compare_url":"https://api.github.com/repos/dbalexandre/trading/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dbalexandre/trading/merges","archive_url":"https://api.github.com/repos/dbalexandre/trading/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dbalexandre/trading/downloads","issues_url":"https://api.github.com/repos/dbalexandre/trading/issues{/number}","pulls_url":"https://api.github.com/repos/dbalexandre/trading/pulls{/number}","milestones_url":"https://api.github.com/repos/dbalexandre/trading/milestones{/number}","notifications_url":"https://api.github.com/repos/dbalexandre/trading/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dbalexandre/trading/labels{/name}","releases_url":"https://api.github.com/repos/dbalexandre/trading/releases{/id}","created_at":"2015-03-24T23:35:50Z","updated_at":"2015-04-07T05:22:46Z","pushed_at":"2015-07-07T03:40:34Z","git_url":"git://github.com/dbalexandre/trading.git","ssh_url":"git@github.com:dbalexandre/trading.git","clone_url":"https://github.com/dbalexandre/trading.git","svn_url":"https://github.com/dbalexandre/trading","homepage":null,"size":328,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"development"}},"base":{"label":"dbalexandre:development","ref":"development","sha":"d00218135c46c4584460643e574f86e094e7fc6b","user":{"login":"dbalexandre","id":2815,"avatar_url":"https://avatars.githubusercontent.com/u/2815?v=3","gravatar_id":"","url":"https://api.github.com/users/dbalexandre","html_url":"https://github.com/dbalexandre","followers_url":"https://api.github.com/users/dbalexandre/followers","following_url":"https://api.github.com/users/dbalexandre/following{/other_user}","gists_url":"https://api.github.com/users/dbalexandre/gists{/gist_id}","starred_url":"https://api.github.com/users/dbalexandre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbalexandre/subscriptions","organizations_url":"https://api.github.com/users/dbalexandre/orgs","repos_url":"https://api.github.com/users/dbalexandre/repos","events_url":"https://api.github.com/users/dbalexandre/events{/privacy}","received_events_url":"https://api.github.com/users/dbalexandre/received_events","type":"User","site_admin":false},"repo":{"id":32831294,"name":"trading","full_name":"dbalexandre/trading","owner":{"login":"dbalexandre","id":2815,"avatar_url":"https://avatars.githubusercontent.com/u/2815?v=3","gravatar_id":"","url":"https://api.github.com/users/dbalexandre","html_url":"https://github.com/dbalexandre","followers_url":"https://api.github.com/users/dbalexandre/followers","following_url":"https://api.github.com/users/dbalexandre/following{/other_user}","gists_url":"https://api.github.com/users/dbalexandre/gists{/gist_id}","starred_url":"https://api.github.com/users/dbalexandre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbalexandre/subscriptions","organizations_url":"https://api.github.com/users/dbalexandre/orgs","repos_url":"https://api.github.com/users/dbalexandre/repos","events_url":"https://api.github.com/users/dbalexandre/events{/privacy}","received_events_url":"https://api.github.com/users/dbalexandre/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dbalexandre/trading","description":"","fork":false,"url":"https://api.github.com/repos/dbalexandre/trading","forks_url":"https://api.github.com/repos/dbalexandre/trading/forks","keys_url":"https://api.github.com/repos/dbalexandre/trading/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dbalexandre/trading/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dbalexandre/trading/teams","hooks_url":"https://api.github.com/repos/dbalexandre/trading/hooks","issue_events_url":"https://api.github.com/repos/dbalexandre/trading/issues/events{/number}","events_url":"https://api.github.com/repos/dbalexandre/trading/events","assignees_url":"https://api.github.com/repos/dbalexandre/trading/assignees{/user}","branches_url":"https://api.github.com/repos/dbalexandre/trading/branches{/branch}","tags_url":"https://api.github.com/repos/dbalexandre/trading/tags","blobs_url":"https://api.github.com/repos/dbalexandre/trading/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dbalexandre/trading/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dbalexandre/trading/git/refs{/sha}","trees_url":"https://api.github.com/repos/dbalexandre/trading/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dbalexandre/trading/statuses/{sha}","languages_url":"https://api.github.com/repos/dbalexandre/trading/languages","stargazers_url":"https://api.github.com/repos/dbalexandre/trading/stargazers","contributors_url":"https://api.github.com/repos/dbalexandre/trading/contributors","subscribers_url":"https://api.github.com/repos/dbalexandre/trading/subscribers","subscription_url":"https://api.github.com/repos/dbalexandre/trading/subscription","commits_url":"https://api.github.com/repos/dbalexandre/trading/commits{/sha}","git_commits_url":"https://api.github.com/repos/dbalexandre/trading/git/commits{/sha}","comments_url":"https://api.github.com/repos/dbalexandre/trading/comments{/number}","issue_comment_url":"https://api.github.com/repos/dbalexandre/trading/issues/comments{/number}","contents_url":"https://api.github.com/repos/dbalexandre/trading/contents/{+path}","compare_url":"https://api.github.com/repos/dbalexandre/trading/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dbalexandre/trading/merges","archive_url":"https://api.github.com/repos/dbalexandre/trading/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dbalexandre/trading/downloads","issues_url":"https://api.github.com/repos/dbalexandre/trading/issues{/number}","pulls_url":"https://api.github.com/repos/dbalexandre/trading/pulls{/number}","milestones_url":"https://api.github.com/repos/dbalexandre/trading/milestones{/number}","notifications_url":"https://api.github.com/repos/dbalexandre/trading/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dbalexandre/trading/labels{/name}","releases_url":"https://api.github.com/repos/dbalexandre/trading/releases{/id}","created_at":"2015-03-24T23:35:50Z","updated_at":"2015-04-07T05:22:46Z","pushed_at":"2015-07-07T03:40:34Z","git_url":"git://github.com/dbalexandre/trading.git","ssh_url":"git@github.com:dbalexandre/trading.git","clone_url":"https://github.com/dbalexandre/trading.git","svn_url":"https://github.com/dbalexandre/trading","homepage":null,"size":328,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/dbalexandre/trading/pulls/9"},"html":{"href":"https://github.com/dbalexandre/trading/pull/9"},"issue":{"href":"https://api.github.com/repos/dbalexandre/trading/issues/9"},"comments":{"href":"https://api.github.com/repos/dbalexandre/trading/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/dbalexandre/trading/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/dbalexandre/trading/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dbalexandre/trading/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/dbalexandre/trading/statuses/7bed7977672fbfa974bd041d75d25336c84a8700"}}}}