README.rdoc in menu_builder-0.2.0 vs README.rdoc in menu_builder-0.2.1

- old
+ new

@@ -5,34 +5,34 @@ == Instalation As a Rail2.1+ gem - gem.config "tabs_helper" + gem.config "menu_builder" As Rails plugin - ruby script/plugin install git://github.com/danielvlopes/tabs_helper.git + ruby script/plugin install git://github.com/danielvlopes/menu_builder.git == Usage Just install the plugin and see the example below: == Example === Controller class DashboardController < ApplicationController - current_tab :mydashboard + menu_item :mydashboard ... end === View ==== ERB code - <% menu :id=>"mainMenu", :class=>"menu" do |m| %> + <% menu(:id=>"mainMenu", :class=>"menu") do |m| %> <%= m.account 'Account', account_path, :style => 'float: right' %> <%= m.users 'Users', users_path, :style => 'float: right' %> <%= m.mydashboard 'Dashboard', '/' %> <%= m.projects 'Projects', projects_path %> <% end %> @@ -47,23 +47,25 @@ </ul> ==== Blocks for content Also is possible to pass blocks instead of simple strings for content. -In this way you can create tabs with icons. Like below: +In this way you can create menu item with icons. Like below: - <% menu do |tab| %> + <% menu do |m| %> <% m.account account_path do %> <%= image_tag "icon.jpg" /> Accounts <% end %> <%= m.users "Users", users_path %> <%= m.posts "Posts", posts_path %> <% end %> == CSS and HTML -This plugin don't came with any kind of asset like image or css. The layout of tabs and the way of show it depends of you css architecture. You can use any kind of technique with html UL and LI, like below: +This plugin don't came with any kind of asset like image or css. +The layout of menu depends of your css. You can use any kind of CSS technique you want, +like below: <html> <head> <style type="text/css" charset="utf-8"> #header ul { font-family:Tahoma; position: absolute; margin:0; list-style:none; } @@ -102,16 +104,13 @@ </ul> </div> </body> </html> -You can read a full tutorial and working demo of the technique above in this "link":http://www.google.com/translate?langpair=pt|en&u=http://blog.areacriacoes.com.br//2009/1/23/bordas-arredondas-para-menus-em-abas +You can read a full tutorial and see a working demo of above in this +{link}[http://www.google.com/translate?langpair=pt|en&u=http://blog.areacriacoes.com.br//2009/1/23/bordas-arredondas-para-menus-em-abas] -== License - -Tabs Helper is released under the MIT License. - == Author Authors:: Daniel Lopes Blog:: {http://blog.areacriacoes.com.br}[http://blog.areacriacoes.com.br] Github:: {http://github.com/danielvlopes}[http://github.com/danielvlopes] @@ -122,11 +121,14 @@ * Fork the project. * Make your feature addition or bug fix. * Add tests for it. This is important so I don't break it in a future version unintentionally. * Commit, do not mess with rakefile, version, or history. - (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull) -* Send me a pull request. Bonus points for topic branches. +* Send me a pull request :) + +== License + +MenuBuilder is released under the MIT License. == Copyright Copyright (c) 2010 Daniel Lopes. See LICENSE for details. \ No newline at end of file