Active component for rails3