Skip to content

Instantly share code, notes, and snippets.

@remear
Forked from esparkman/application.js
Created January 17, 2011 18:47
Show Gist options
  • Save remear/783250 to your computer and use it in GitHub Desktop.
Save remear/783250 to your computer and use it in GitHub Desktop.
$(document).ready(function(){
$("a.tab").live('click', function () {
$(".content").hide();
$("ul.tabs .active").removeClass("active");
$(this).addClass("active");
$("#" + $(this).attr("title")).show();
});
});
%section.column.width8.first
%h1
%b= @company.name
%p
%b Location:
= @company.location
= link_to "Add Policyholder", new_company_person_path(@company)
= link_to 'Edit', edit_company_person_path(@company)
= link_to 'Back', companies_path
#tabbed_content.tabbed_box
.tabbed_area
%ul.tabs
%li
%a.tab.active{:href => "", :title => 'content_1'} Issues
%li
%a.tab{:href => "", :title => 'content_2'}Policy Holders
#content_1.content
%h2 Issues
%ul
%li
%a{:href => ""}
HTML Techniques
%small 4 Posts
%li
%a{:href => ""}
CSS Styling
%small 32 Posts
%li
%a{:href => ""}
Flash Tutorials
%small 2 Posts
%li
%a{:href => ""}
Web Miscellanea
%small 19 Posts
#content_2.content
%h2 Policy Holders
=render 'people/person'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment