Skip to content

Instantly share code, notes, and snippets.

@itsluke
Created January 12, 2014 10:46
Show Gist options
  • Save itsluke/8383106 to your computer and use it in GitHub Desktop.
Save itsluke/8383106 to your computer and use it in GitHub Desktop.
Make a quick rails project in haml, bash function
function newrailsproject() {
rails new $1 -d mysql
cd $1
rm public/index.html
rm Gemfile
rm app/views/layout/application.html.erb
cp $HOME/code/rails/template/template_Gemfile Gemfile
bundle install
echo "\n ****** project created \n"
rails g nifty:layout --haml
bundle exec compass init
git init
rails g figaro:install
echo "\n ****** nifty compass git and figaro installed \n"
cd $1
sublime .
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment