So i'm working on a site where I want users to be sent back to the sign-up step they're currently "on", while that's easy from within the wizard's controller, I'd like to interrupt other paths / pages pretty globally..using a before_filter in the app controller currently.
My current plan is to do something like:
redirect_to welcome_path(:step1) and return if current_user.steps_complete = 0
But that's pretty ugly, and the steps_complete method will be fragile. I wish welcome_path(:current_step) worked but it doesn't.. is there a smarter way to do this that I'm missing?
Sorry for the delay, github hasn't been sending me notifications of new issues :/ Can you explain a bit more about why you want to redirect the user back to the sign up step?