This app helps you transform your team and codebase into code hospitable entities.
- Go to the Code Hospitality homepage
- Click the 'DOWNLOAD RIGHT NOW' button
- Twiddle thumbs
- Enjoy
#place immediately under 'form_for' line | |
<% if @item.errors.any? %> | |
<div id="error_explanation"> | |
<h2><%= pluralize(@item.errors.count, "error") %> prohibited this item from being saved:</h2> | |
<ul> | |
<% @item.errors.full_messages.each do |msg| %> | |
<li><%= msg %></li> | |
<% end %> |
class Bottles | |
def verse(number) | |
if number == 2 | |
<<-VERSE | |
2 bottles of beer on the wall, 2 bottles of beer. | |
Take one down and pass it around, 1 bottle of beer on the wall. | |
VERSE | |
elsif number == 1 | |
<<-VERSE | |
1 bottle of beer on the wall, 1 bottle of beer. |