View component for rails.