Rails mapping data | Fixed issues |Ruby on rails issues