app/views/general/wizard.html.erb
<div class="accordions">
<% wizard_steps.each do |wizard_step| %>
<h3>
<%= section_header(wizard_step) %>
</h3>
<div style="max-height:350px; overflow: auto">
<%= step_pane(wizard_step) %>
</div>
<% end %>
</div>
<% content_for :document_ready do %>
$( '.accordions' ).each(function(k, v) {
$(v).accordion({ active: <%= wizard_steps.index(step).to_i %> })
})
<% end %>