Tell Messaging
Tell messaging is a way to send a message from a controller down to a view. The 'message' persists across a redirect as well. When a non-redirected page is rendered, ie. any page that does not have a status of 3xx, the tell messages will be cleared.
class UsersController
include Mack::Controller
def say_hi
tell[:notice] = 'Hello World'
end
end
# app/views/users/say_hi.html.erb Here's a message from the controller: <%= tell[:notice] %>