Rewriting CodeMaps(my first rails project)