Devise/Rails - How to remove a particular flash message? (Signed in Successfully)

前端 未结 8 928
囚心锁ツ
囚心锁ツ 2020-12-13 12:38

Using Devise, I would like to know if there is a way to remove a particular flash message? (Signed in Successfully).

I care about other msg in the view, so It is jus

8条回答
  •  余生分开走
    2020-12-13 13:20

    Empty string in the locale file (as suggested above) but also add the following CSS snippet to hide (instead of monkeying with your flash views)

    .flash.alert:empty {
      display: none;
    }
    

提交回复
热议问题