change to brewfile.sh
add gen_rails function