democracyworks / hat-trick

Hat Trick - Rails wizards done right
MIT License
5 stars 0 forks source link

Need a new DSL command for "show a different step right now" #19

Closed cap10morgan closed 12 years ago

cap10morgan commented 12 years ago

This would go in before blocks, and would basically be a "redirect" to some other step that you'd like to show right then instead of the one that's about to be displayed. redirect_to_step :foo might be a good choice for syntax.

cap10morgan commented 12 years ago

I'm trying to determine a sane way to run the first step's (i.e. the one in the URL bar when the browser loads the app) before callback so that metadata about another step to jump to will already exist when redirect_to_step is called in that before callback, and we can send that down to the browser immediately.

paulschreiber commented 12 years ago

Gentle with the premature optimizations. Let's get it working first.

cap10morgan commented 12 years ago

That wasn't an optimization, premature or otherwise, just an implementation note. It's how the app should be behaving anyway.

This works now.