{"action":"created","issue":{"url":"https://api.github.com/repos/turingschool-projects/jobs/issues/31","labels_url":"https://api.github.com/repos/turingschool-projects/jobs/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/turingschool-projects/jobs/issues/31/comments","events_url":"https://api.github.com/repos/turingschool-projects/jobs/issues/31/events","html_url":"https://github.com/turingschool-projects/jobs/pull/31","id":55423407,"number":31,"title":"Bookmarklet works in production or development","user":{"login":"glenegbert","id":5980245,"avatar_url":"https://avatars.githubusercontent.com/u/5980245?v=3","gravatar_id":"","url":"https://api.github.com/users/glenegbert","html_url":"https://github.com/glenegbert","followers_url":"https://api.github.com/users/glenegbert/followers","following_url":"https://api.github.com/users/glenegbert/following{/other_user}","gists_url":"https://api.github.com/users/glenegbert/gists{/gist_id}","starred_url":"https://api.github.com/users/glenegbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glenegbert/subscriptions","organizations_url":"https://api.github.com/users/glenegbert/orgs","repos_url":"https://api.github.com/users/glenegbert/repos","events_url":"https://api.github.com/users/glenegbert/events{/privacy}","received_events_url":"https://api.github.com/users/glenegbert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-25T17:59:31Z","updated_at":"2015-01-25T18:12:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/turingschool-projects/jobs/pulls/31","html_url":"https://github.com/turingschool-projects/jobs/pull/31","diff_url":"https://github.com/turingschool-projects/jobs/pull/31.diff","patch_url":"https://github.com/turingschool-projects/jobs/pull/31.patch"},"body":"A few notes on this PR: \r\n\r\n- the code changes have already been pushed to Heroku because that was the only way to test if the bookmarklet works in production.\r\n\r\n- the name is misleading because as of this version the bookmarklet will only work in production.  I could not figure out how to get the ENV variable to work in the js bookmarklet so I couldn't change the URL base based on environment.  I am still working on it and will create a separate issue for it.  "},"comment":{"url":"https://api.github.com/repos/turingschool-projects/jobs/issues/comments/71384018","html_url":"https://github.com/turingschool-projects/jobs/pull/31#issuecomment-71384018","issue_url":"https://api.github.com/repos/turingschool-projects/jobs/issues/31","id":71384018,"user":{"login":"rNavarrete","id":3431580,"avatar_url":"https://avatars.githubusercontent.com/u/3431580?v=3","gravatar_id":"","url":"https://api.github.com/users/rNavarrete","html_url":"https://github.com/rNavarrete","followers_url":"https://api.github.com/users/rNavarrete/followers","following_url":"https://api.github.com/users/rNavarrete/following{/other_user}","gists_url":"https://api.github.com/users/rNavarrete/gists{/gist_id}","starred_url":"https://api.github.com/users/rNavarrete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rNavarrete/subscriptions","organizations_url":"https://api.github.com/users/rNavarrete/orgs","repos_url":"https://api.github.com/users/rNavarrete/repos","events_url":"https://api.github.com/users/rNavarrete/events{/privacy}","received_events_url":"https://api.github.com/users/rNavarrete/received_events","type":"User","site_admin":false},"created_at":"2015-01-25T18:12:13Z","updated_at":"2015-01-25T18:12:13Z","body":"I wonder if you could do a conditional like this:\r\n\r\n<% if Rails.env.development? %>\r\n  development_url\r\n<% else %>\r\n  production_url\r\n<% end %>\r\n\r\nWould this be bad practice?\r\n"}}