Sha256: 2db58e5a7719282279b436bc945cabd96c4240fd4ad67ed875365f7501623d9e

Contents?: true

Size: 820 Bytes

Versions: 3

Compression:

Stored size: 820 Bytes

Contents

# Tabit [![Build Status](https://secure.travis-ci.org/tbpro/tabit.png)](https://secure.travis-ci.org/#!/tbpro/tabit)

Tabit is a simple tab menu generator. It depends on `active_link_to`
helper. If you dont know how to set an item active take a look at it first.
The generated source is compatible to bootstrap tabs with dropdowns.

## Install

 ```ruby
 gem 'tabit'
 ```

## Usage

 ```ruby
 = tabit :class => 'nav nav-tabs' do |t1|
   - t1.heading 'Header'
   - t1.add 'Videos', videos_path
   - t1.divider
   - t1.add 'Movies', movies_path, :active => /movies(\/\d)*(\/edit)*$/
   - t1.add 'Movies, movies_path, :active => :exclusive, :type => :dropdown do |t2|
     - t2.add 'Add movie', new_movie_path, :active => :exclusive
```

## Credits

Copyright (c) 20112 Thomas Boerger Programmierung <http://www.tbpro.de>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tabit-0.4.0 README.md
tabit-0.3.4 README.md
tabit-0.3.3 README.md