Skip to content

Instantly share code, notes, and snippets.

@tylerlee
Created January 9, 2014 17:31
Show Gist options
  • Select an option

  • Save tylerlee/8338300 to your computer and use it in GitHub Desktop.

Select an option

Save tylerlee/8338300 to your computer and use it in GitHub Desktop.
Vertical Tabs Markup
<% links = [{:title => 'Home', :path => styleguide_path},
{:title => 'The Grid', :path => styleguide_path(:grid)},
...] %>
<%=
vertical_tabs do |ui|
links.each do |tab|
ui.tab tab[:title],
tab.delete(:path)
end
end
%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment