schneems/wicked — pull request #150 by alexandrecolas (2014-12-08 17:09:48+00:00)
Title: Add `steps` and `current_step_index` in view helper.

Sometime, we need to know `current_step_index` and list of `steps` in view.

For exemple to easily create a breadcrumb :
```ruby

<% steps.each_with_index do |step, index| %>

<% if index < (current_step_index - 1) %>

<%= link_to I18n.t("wicked.#{step}"), wizard_path(step) %>

<% elsif index == (current_step_index - 1) %>

<%= link_to I18n.t("wicked.#{step}"), wizard_path(step) %>

<% else %>

<%= I18n.t("wicked.#{step}") %>

<% end %>

<% end %>

```