rails katibeen code