Open RubyLouvre opened 12 years ago
flash是基于session的消息传送机制,我们可以把消息放到flash中并在下一个action访问到它们。 用法
flow.flash('info', 'email sent'); flow.flash('error', 'email delivery failed'); flow.flash('info', 'email re-sent'); // => 2 flow.flash('info'); // => ['email sent', 'email re-sent'] flow.flash('info'); // => [] flow.flash(); // => { error: ['email delivery failed'], info: [] }
详见文档
flash是基于session的消息传送机制,我们可以把消息放到flash中并在下一个action访问到它们。 用法
详见文档