{"action":"created","issue":{"url":"https://api.github.com/repos/openSUSE/osem/issues/804","repository_url":"https://api.github.com/repos/openSUSE/osem","labels_url":"https://api.github.com/repos/openSUSE/osem/issues/804/labels{/name}","comments_url":"https://api.github.com/repos/openSUSE/osem/issues/804/comments","events_url":"https://api.github.com/repos/openSUSE/osem/issues/804/events","html_url":"https://github.com/openSUSE/osem/issues/804","id":137523021,"number":804,"title":"Add flash_type error","user":{"login":"differentreality","id":4322737,"avatar_url":"https://avatars.githubusercontent.com/u/4322737?v=3","gravatar_id":"","url":"https://api.github.com/users/differentreality","html_url":"https://github.com/differentreality","followers_url":"https://api.github.com/users/differentreality/followers","following_url":"https://api.github.com/users/differentreality/following{/other_user}","gists_url":"https://api.github.com/users/differentreality/gists{/gist_id}","starred_url":"https://api.github.com/users/differentreality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/differentreality/subscriptions","organizations_url":"https://api.github.com/users/differentreality/orgs","repos_url":"https://api.github.com/users/differentreality/repos","events_url":"https://api.github.com/users/differentreality/events{/privacy}","received_events_url":"https://api.github.com/users/differentreality/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openSUSE/osem/labels/Grooming","name":"Grooming","color":"eb6420"},{"url":"https://api.github.com/repos/openSUSE/osem/labels/Junior","name":"Junior","color":"00FA9A"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-01T09:43:20Z","updated_at":"2016-03-01T11:08:29Z","closed_at":null,"body":"In a lot of our controllers we use `flash[:error] = 'message'` and then we redirect.\r\nIn other places we just use `redirect_to root_path, notice: 'message'`\r\nTo have a common way, we should add the flash_type error (http://api.rubyonrails.org/classes/ActionController/Flash/ClassMethods.html#method-i-add_flash_types) and rewrite the controllers to use a common style."},"comment":{"url":"https://api.github.com/repos/openSUSE/osem/issues/comments/190667589","html_url":"https://github.com/openSUSE/osem/issues/804#issuecomment-190667589","issue_url":"https://api.github.com/repos/openSUSE/osem/issues/804","id":190667589,"user":{"login":"differentreality","id":4322737,"avatar_url":"https://avatars.githubusercontent.com/u/4322737?v=3","gravatar_id":"","url":"https://api.github.com/users/differentreality","html_url":"https://github.com/differentreality","followers_url":"https://api.github.com/users/differentreality/followers","following_url":"https://api.github.com/users/differentreality/following{/other_user}","gists_url":"https://api.github.com/users/differentreality/gists{/gist_id}","starred_url":"https://api.github.com/users/differentreality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/differentreality/subscriptions","organizations_url":"https://api.github.com/users/differentreality/orgs","repos_url":"https://api.github.com/users/differentreality/repos","events_url":"https://api.github.com/users/differentreality/events{/privacy}","received_events_url":"https://api.github.com/users/differentreality/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T11:08:29Z","updated_at":"2016-03-01T11:08:29Z","body":"Anyone who wants to work on any issue can do so, by assigning himself/herself from the right side of this page where it says **Assignee**."}}