implemented mockup in rails