public
Description: Ruby on Rails helper for tabbed interface
Homepage: http://rafael.adm.br/opensource/tabs_helper
Clone URL: git://github.com/rafaelp/tabs_helper.git
name age message
file MIT-LICENSE Thu Aug 07 20:53:54 -0700 2008 first commit [rafaelp]
file README.mkdn Sat Sep 20 07:58:17 -0700 2008 Minor changes on README [rafaelp]
file Rakefile Thu Aug 07 20:53:54 -0700 2008 first commit [rafaelp]
directory frontends/ Mon Dec 29 19:06:04 -0800 2008 Minor fix on CSS and using proc.binding on conc... [rafaelp]
file init.rb Thu Aug 07 20:53:54 -0700 2008 first commit [rafaelp]
file install.rb Thu Aug 07 20:53:54 -0700 2008 first commit [rafaelp]
file install_assets.rb Thu Aug 07 20:53:54 -0700 2008 first commit [rafaelp]
directory lib/ Mon Dec 29 19:06:04 -0800 2008 Minor fix on CSS and using proc.binding on conc... [rafaelp]
directory test/ Thu Aug 07 20:53:54 -0700 2008 first commit [rafaelp]
file uninstall.rb Thu Aug 07 20:53:54 -0700 2008 first commit [rafaelp]
README.mkdn

Tabs Helper

This plugin is a Ruby on Rails helper for tabbed interface with control of current tab and different styled tabs. Very useful for web appications.

INSTALATION

ruby script/plugin install git://github.com/rafaelp/tabs_helper.git

If you got this plugin with SVN or Piston, run: ruby vendor/plugins/tabs-helper/install.rb

To use the tabs_helper you need to include the CSS stylesheet in the of your layout template. You can do this either by manually including the files via stylesheet_link_tag OR by using the included tabs_helper_includes helper method, which will do this for you.

EXAMPLE

# Controller
class DashboardController < ApplicationController
  current_tab :mydashboard

  ...

end

# View
<% tabs do |tab| %>
  <%= tab.account 'Account', account_path, :style => 'float: right' %>
  <%= tab.users 'Users', users_path, :style => 'float: right' %>
  <%= tab.mydashboard 'Dashboard', '/' %>
  <%= tab.projects 'Projects', projects_path %>
<% end %>

LICENSE

Tabs Helper is released under the MIT License.

AUTHOR

Rafael Lima

Working at BielSystems

Blog: http://rafael.adm.br

Podcast: http://rafael.adm.br/voltandopracasa

Github: http://github.com/rafaelp

Twitter: http://twitter.com/rafaelp

Did you like?

Recommend me at Working With Rails