{"action":"created","issue":{"url":"https://api.github.com/repos/codeunion/examples-sinatra/issues/6","labels_url":"https://api.github.com/repos/codeunion/examples-sinatra/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/codeunion/examples-sinatra/issues/6/comments","events_url":"https://api.github.com/repos/codeunion/examples-sinatra/issues/6/events","html_url":"https://github.com/codeunion/examples-sinatra/pull/6","id":58479821,"number":6,"title":"Flash message example","user":{"login":"openspectrum","id":709100,"avatar_url":"https://avatars.githubusercontent.com/u/709100?v=3","gravatar_id":"","url":"https://api.github.com/users/openspectrum","html_url":"https://github.com/openspectrum","followers_url":"https://api.github.com/users/openspectrum/followers","following_url":"https://api.github.com/users/openspectrum/following{/other_user}","gists_url":"https://api.github.com/users/openspectrum/gists{/gist_id}","starred_url":"https://api.github.com/users/openspectrum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openspectrum/subscriptions","organizations_url":"https://api.github.com/users/openspectrum/orgs","repos_url":"https://api.github.com/users/openspectrum/repos","events_url":"https://api.github.com/users/openspectrum/events{/privacy}","received_events_url":"https://api.github.com/users/openspectrum/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-21T23:26:03Z","updated_at":"2015-02-22T00:09:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/codeunion/examples-sinatra/pulls/6","html_url":"https://github.com/codeunion/examples-sinatra/pull/6","diff_url":"https://github.com/codeunion/examples-sinatra/pull/6.diff","patch_url":"https://github.com/codeunion/examples-sinatra/pull/6.patch"},"body":"An example application using `Rack::Flash` messages.\r\n\r\nDisplays error messages when resource fails to save:\r\n\r\n![screen shot 2015-02-21 at 6 19 57 pm](https://cloud.githubusercontent.com/assets/709100/6316519/f53ce4c0-b9f6-11e4-9a9e-bffe3b92d2f0.png)\r\n\r\nDisplays confirmation message when resource saves successfully:\r\n\r\n![screen shot 2015-02-21 at 6 19 40 pm](https://cloud.githubusercontent.com/assets/709100/6316521/fc54d9b6-b9f6-11e4-811b-ec00d6b42f1b.png)\r\n"},"comment":{"url":"https://api.github.com/repos/codeunion/examples-sinatra/issues/comments/75402938","html_url":"https://github.com/codeunion/examples-sinatra/pull/6#issuecomment-75402938","issue_url":"https://api.github.com/repos/codeunion/examples-sinatra/issues/6","id":75402938,"user":{"login":"zspencer","id":50284,"avatar_url":"https://avatars.githubusercontent.com/u/50284?v=3","gravatar_id":"","url":"https://api.github.com/users/zspencer","html_url":"https://github.com/zspencer","followers_url":"https://api.github.com/users/zspencer/followers","following_url":"https://api.github.com/users/zspencer/following{/other_user}","gists_url":"https://api.github.com/users/zspencer/gists{/gist_id}","starred_url":"https://api.github.com/users/zspencer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zspencer/subscriptions","organizations_url":"https://api.github.com/users/zspencer/orgs","repos_url":"https://api.github.com/users/zspencer/repos","events_url":"https://api.github.com/users/zspencer/events{/privacy}","received_events_url":"https://api.github.com/users/zspencer/received_events","type":"User","site_admin":false},"created_at":"2015-02-22T00:09:52Z","updated_at":"2015-02-22T00:09:52Z","body":"Overall :+1: :tada: :balloon: :birthday: \r\n\r\nSome thoughts:\r\n\r\n1. I don't know if this needs a database. We could do some dice-rolling and redirect the post to a get route or something. (But that isn't a common use case of flash, so it may be distracting). It's up to you to decide if you think it hurts or helps the clarity\r\n\r\n2. We may want to consider hosting a really bland stylesheet for rapid prototyping on these kinds of things; like a very-small subset of bootstrap. That way we don't have to copy-pasta this css all over the place."}}