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 %>
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 @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 %>