Skip to content

Instantly share code, notes, and snippets.

@istan
Created February 29, 2012 23:40
Show Gist options
  • Save istan/1945490 to your computer and use it in GitHub Desktop.
Save istan/1945490 to your computer and use it in GitHub Desktop.
- @template.tabs.each_with_index do |t, index|
- if index > 0
.tab{:id => "tab_#{index}"}
- else
.tab.visible{:id => "tab_#{index}"}
%h3= t['headers'][0]
- t['inputs'].each do |b|
%h4= b['prompt']
= render 'make_input', :input => b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment