Created
January 30, 2009 15:24
-
-
Save gugod/55107 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: grid_row(3 => "user/login", 10 => "welcome/content", 3 => "common/ads") | |
def grid_row(*args) | |
out = "" | |
while(args.length > 0) { | |
width = args.shift | |
partial = args.shift | |
out += "<div class=\"grid_#{width}\">#{render :partial => partial}</div>" | |
} | |
return out | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment