Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望能够获得在 Flash 消息中使用的符号的名称。
例如:我正在寻找一个函数或助手,当 flash[:warning] 处于活动状态时会返回“警告”。
任何想法,将不胜感激?
这对我有用。我想要从 flash[:warning] 中提取的字符串值 'warning'
flash.keys.first