Let's say I have an app where a user creates something, e.g. maybe they
create a new recipe, and the app redirects to the :show action of the
recipes controller after a successful post to the :create action. How
would I have a flash[:notice] = "Recipe successfully created." shown
using rjs effects on the :show action? Essentially, I'm trying to find a
way to way to insert the following behavior after I've redirected to the
page.insert_html :after, "all", "<div
page.visual_effect :fade, "notifier"
It's easy to do the above when we don't need to redirect - we just use
the some_action.js.rjs (or whatever the template name corresponding to
the controller action), but I just can't work out how to do this with a
redirect in between the user making a request and the rjs doing its
thing. Is this possible?