{"action":"opened","issue":{"url":"https://api.github.com/repos/ga-dc/project2/issues/392","labels_url":"https://api.github.com/repos/ga-dc/project2/issues/392/labels{/name}","comments_url":"https://api.github.com/repos/ga-dc/project2/issues/392/comments","events_url":"https://api.github.com/repos/ga-dc/project2/issues/392/events","html_url":"https://github.com/ga-dc/project2/issues/392","id":117691419,"number":392,"title":"Validations","user":{"login":"dan-ator","id":14224854,"avatar_url":"https://avatars.githubusercontent.com/u/14224854?v=3","gravatar_id":"","url":"https://api.github.com/users/dan-ator","html_url":"https://github.com/dan-ator","followers_url":"https://api.github.com/users/dan-ator/followers","following_url":"https://api.github.com/users/dan-ator/following{/other_user}","gists_url":"https://api.github.com/users/dan-ator/gists{/gist_id}","starred_url":"https://api.github.com/users/dan-ator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dan-ator/subscriptions","organizations_url":"https://api.github.com/users/dan-ator/orgs","repos_url":"https://api.github.com/users/dan-ator/repos","events_url":"https://api.github.com/users/dan-ator/events{/privacy}","received_events_url":"https://api.github.com/users/dan-ator/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-18T21:58:36Z","updated_at":"2015-11-18T21:58:36Z","closed_at":null,"body":"I have a profile page and in the form for creating a profile there are four boxes: info, facebook_url, blog_url, and other_url.  I have it set up so that if the url boxes are left blank then there won't appear on the page a link for those, otherwise there is a link connecting to that url.  I want to add a validation so that if someone does enter something into the form for one of the urls, it is an actual url.  Because right now if one enters something that isn't a url, the link appears on the show page and clicking on the link yields an error.\r\n\r\nI searched through the lesson plan on validation and the rails guides for them here: http://guides.rubyonrails.org/active_record_validations.html\r\n\r\nbut there does not seem to be a way to validate that something is a URL.  Or is there?"}}