On interrupted Signups #37

Closed
mbhnyc opened this Issue Sep 17, 2012 · 1 comment

Projects

None yet

2 participants

mbhnyc commented Sep 17, 2012

Hey guys-

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
etc...

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?

Owner

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?

@schneems schneems closed this Oct 18, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment