Guest User

Untitled

a guest
Jan 20th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. def display_roundscore(score1, score2)
  2. if score1 > score2
  3. content_tag(:span, score1, :class => "won")
  4. elsif score1 < score2
  5. content_tag(:span, score1, :class => "lost")
  6. else
  7. content_tag(:span, score1, :class => "draw")
  8. end
  9. end
Add Comment
Please, Sign In to add comment