% def columnize(arr, col_count) row_count = arr.size / col_count row_count += 1 if arr.size % col_count > 0 cols = arr.each_slice(row_count).to_a cols[0].zip(*cols[1..-1]).map(&:compact) end %>
Please go to http://rails-bestpractices.com to see more useful Rails Best Practices.
<% if @errors.empty? %> No error found. Cool! <% else %> Found <%= @errors.size %> warnings. <% end %>
<% end %> | ||
Filename | Line Number | Warning Message | <% if @hg %>Hg Commit | Hg Username | <% elsif @git %>Git Commit | Git Username | <% end %>
---|---|---|---|---|---|---|
<% if @github %> <%= error.short_filename %> <% elsif @textmate %> <%= error.short_filename %> <% elsif @sublime %> <%= error.short_filename %> <% elsif @mvim %> <%= error.short_filename %> <% else %> <%= error.short_filename %> <% end %> | <%= error.line_number %> | <% if @hg %><%= error.hg_commit %> | <%= error.hg_username %> | <% elsif @git %><%= error.git_commit %> | <%= error.git_username %> | <% end %>