Rails helpers.