Skip to content

Commit

Permalink
Merge pull request #182 from seanahrens/patch-1
Browse files Browse the repository at this point in the history
Clarified README.md about jump_to and skip_to
  • Loading branch information
schneems committed Aug 14, 2015
2 parents 550e007 + c4ecfe8 commit 0725319
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Expand Up @@ -195,13 +195,15 @@ wizard_steps # Gets ordered list of steps

**Redirect options**

Both `skip_step` and `jump_to` will cause a redirect. If you want to pass params to the step you are skipping to you can pass it into those.
Both `skip_step` and `jump_to` will cause a redirect.

```
skip_step(foo: "bar")
```

and
*Note that unlike you would do when making a call to Rails' `redirect_to`, you should not call `return` immediately after `skip_step` and `jump_to`, since the actual redirection is done in the render_wizard call.*

If you want to pass params to the step you are skipping to you can pass it into those:

```
jump_to(:specific_step, foo: "bar")
Expand Down

0 comments on commit 0725319

Please sign in to comment.