This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
dookie (author)
Tue Mar 17 06:14:31 -0700 2009
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Mon Dec 15 09:21:02 -0800 2008 | |
| |
README.mkdn | ||
| |
Rakefile | Mon Dec 15 09:21:02 -0800 2008 | |
| |
init.rb | ||
| |
install.rb | Mon Dec 15 09:21:02 -0800 2008 | |
| |
lib/ | ||
| |
tasks/ | Mon Dec 15 09:21:02 -0800 2008 | |
| |
test/ | ||
| |
uninstall.rb | Mon Dec 15 09:21:02 -0800 2008 |
README.mkdn
ShowInColumns
It's a helper to show your content in columns when you use a table.
Attributes
collection => an Array or Hash of objects ex. User.all
collumns => number of columns that will create default is 2
block => a block of code that will repeat You need add a tag <td>
Install
to instal run:
script/plugin install git://github.com/marciotrindade/show_in_columns.git
Example
You can use like this:
<table id="list_users">
<% show_in_columns User.all, 2 do |user| -%>
<td><%=user.name%></td>
<% end -%>
</table>
this code will generate a HTML like this:
<tr>
<td>Name 1</td>
<td>Name 2</td>
</tr>
<tr>
<td>Name 3</td>
</tr>
Copyright (c) 2008 Marcio Trindade (marciotrindade@gmail.com), released under the MIT license








