Using ERB to generate model.