= Tabulous == Description Tabulous provides an easy way to add tabs to your Rails application. == Requirements Tabulous only works with Rails 3. It has been tested on Ruby 1.8.7 and 1.9.2. == Usage Traditionally, implementing tabs in Rails involves adding logic to your views and sprinkling tab-related code all over your controllers. Tabulous takes a different approach and consolidates all of the tab-related code into one configuration file. Apart from this configuration file, you just have to call <%= tabs %> and <%= subtabs %> in your view layout(s) and then create your own CSS styles for the tabs. To get started, add the gem to your Rails application's Gemfile and install it using: bundle install Then generate the tab initializer: rails generate tabs This will generate config/initializers/tabulous.rb. Open the file and configure it to your liking. You'll notice the code is formatted into a grid. After you edit the file, run the following rake task to prettify the code back into a nice grid: rake tabs:format Make sure you call the following view helpers in your layout(s): <%= tabs %> <%= subtabs %> The tabs helper will generate markup that looks like this:
And the subtabs helper will generate markup that looks like this: