Rails sample for connectable protocols