{"action":"created","issue":{"url":"https://api.github.com/repos/Netflix/Scumblr/issues/55","labels_url":"https://api.github.com/repos/Netflix/Scumblr/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/Netflix/Scumblr/issues/55/comments","events_url":"https://api.github.com/repos/Netflix/Scumblr/issues/55/events","html_url":"https://github.com/Netflix/Scumblr/issues/55","id":96819035,"number":55,"title":"adding \"search name\" column to the results tab","user":{"login":"tDorosheff","id":4360357,"avatar_url":"https://avatars.githubusercontent.com/u/4360357?v=3","gravatar_id":"","url":"https://api.github.com/users/tDorosheff","html_url":"https://github.com/tDorosheff","followers_url":"https://api.github.com/users/tDorosheff/followers","following_url":"https://api.github.com/users/tDorosheff/following{/other_user}","gists_url":"https://api.github.com/users/tDorosheff/gists{/gist_id}","starred_url":"https://api.github.com/users/tDorosheff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tDorosheff/subscriptions","organizations_url":"https://api.github.com/users/tDorosheff/orgs","repos_url":"https://api.github.com/users/tDorosheff/repos","events_url":"https://api.github.com/users/tDorosheff/events{/privacy}","received_events_url":"https://api.github.com/users/tDorosheff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-23T13:48:47Z","updated_at":"2015-07-23T19:17:40Z","closed_at":null,"body":"Im trying to add a column providing the search name of the individual results shown on the results tab. I found the /scumblr/app/views/results/ _results_table.html.erb, and modified a line in the table head section on lines 2-15, to be this: \"<th><%= sort_link @q, :search_name%></th>\". Doing this gave me a new column in the results tab titled \"search name\". The column was populated by the domain of the result, and nothing else. I tried to add a line in the subsequent table body section, lines 16-49, but that was done on a hope and a prayer, as that section looks pretty complicated. Out of sheer curiosity and minimal expectations, I ended up adding the line:\r\n\"<td><%= search.name %></td>, but this of course broke the html and gave me an undefined local variable error. After poking around in /scumblr/app/views/searches, i found some files that seem to characterize the correct variable name for the \"search name\" attribute, which is where i got the syntax \"search.name\". Would love to get this working, because when analyzing results, it would be nice to know which search provided which result. I suppose this can be gleaned from the context of the result itself, but sort and filter functionality would be nice to have."},"comment":{"url":"https://api.github.com/repos/Netflix/Scumblr/issues/comments/124215811","html_url":"https://github.com/Netflix/Scumblr/issues/55#issuecomment-124215811","issue_url":"https://api.github.com/repos/Netflix/Scumblr/issues/55","id":124215811,"user":{"login":"ahoernecke","id":655799,"avatar_url":"https://avatars.githubusercontent.com/u/655799?v=3","gravatar_id":"","url":"https://api.github.com/users/ahoernecke","html_url":"https://github.com/ahoernecke","followers_url":"https://api.github.com/users/ahoernecke/followers","following_url":"https://api.github.com/users/ahoernecke/following{/other_user}","gists_url":"https://api.github.com/users/ahoernecke/gists{/gist_id}","starred_url":"https://api.github.com/users/ahoernecke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahoernecke/subscriptions","organizations_url":"https://api.github.com/users/ahoernecke/orgs","repos_url":"https://api.github.com/users/ahoernecke/repos","events_url":"https://api.github.com/users/ahoernecke/events{/privacy}","received_events_url":"https://api.github.com/users/ahoernecke/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T19:17:40Z","updated_at":"2015-07-23T19:17:40Z","body":"Sorry actually it should be like this:\r\n```\r\n<%= result.search_results.try(:first).try(:search).try(:name)%>\r\n```"}}