You are here: Browse Railsplugins Livetabs
= LiveTabs
This Helper adds simple javscript-tabs to your rails application
InstallationInstall the plugin via rails plugin install script like that:
script/plugin install http://svn.omdb-beta.org/plugins/livetabs
You need to setup the javascript/stylesheet/images with a simple rake command:
rake livetabs:install:default
this will install the default skin for the tabs. You can add your own skin by adding stylesheets and images to the skin directory.
UsageTo add livetabs, simply call the livetab helper method with the strings of the tabs you want to display:
<%= livetabs “First Tab”, “Second Tab”, “Third Tab” %>
You need to have a partial for each tab, that has the same name as the text of the tab in lower case. So in this case, you would need three partials _first_tab.rhtml, _second_tab.rhtml and _third_tab.rhtml.
You need to include the default javascripts and the livetabs stylesheets in your layout
<%= javascript_include_tag :defaults %> <%= stylesheet_link_tag ‘livetabs’ %>
NOTE: This description has been extracted from the Plugin README and so the formatting may need updating to make browser friendly