Skip to content

Instantly share code, notes, and snippets.

@dmclark
Forked from gregelin/gist:176601
Created January 3, 2010 16:25
Show Gist options
  • Save dmclark/268021 to your computer and use it in GitHub Desktop.
Save dmclark/268021 to your computer and use it in GitHub Desktop.
initial rails app creation
Creating a rails app "Vurl"
http://www.vimeo.com/3761040
(replace vurl with your appname, then Vurl is first model, too)
rails -d mysql vurl
cd vurl
git init
cat > .gitignore
log/*.log
db/*.sqlite3
tmp/**/*
doc/api
doc/app
doc/plugins
touch log/.gitignore
git add .
git commit -m "Initial commit."
script/generate rspec
git commit -m "Add rspec."
script/generate rspec_scaffold Vurl url:string slug:string
rake db:migrate
rake -T (help for rake commands)
rake spec # runs automated test suite to see what passes
# passing test suite.
Notes:
To change default home page:
1) delete public/index.html
2) uncomment or add line "map.root :controller => "newhome", :action => "newaction"
3) added useful tips from http://woss.name/blog/2008/4/9/using-git-submodules-to-track-plugins.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment