democracyworks / hat-trick

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

Specify what happens when invalid page requested #24

Closed paulschreiber closed 12 years ago

paulschreiber commented 12 years ago

hat-trick should allow you to specify what happens when an invalid page is requested. Right now, you get

x is not a member of this wizard

It would be good if you could either:

Could this be part of wizard do |config|? i.e. config.not_found = :start config.not_found = # show 404

cap10morgan commented 12 years ago

Fixed in ad474d91d3cc92a19555658fa0639d5b654524e2. I just raise a RoutingError when a non-existent step is requested via the URL path.