save railsrc to file