added echo snippet for Rails