make bb store data in rails