Rails API application example