Flash[:notice] VS Flash.now[:notice]

Flash[:notice]’s message will persist to the next action and should be used when redirecting to another action via the ‘redirect_to’ method.

Flash.now[:notice]’s message will be displayed in the view your are rendering via the ‘render’ method.

VN:F [1.9.22_1171]
Rating: 3.9/5 (9 votes cast)
VN:F [1.9.22_1171]
Rating: +3 (from 5 votes)
Flash[:notice] VS Flash.now[:notice], 3.9 out of 5 based on 9 ratings
Facebook Twitter Email

Leave a Reply