Skip to content

Instantly share code, notes, and snippets.

@gregelin
Created August 27, 2009 22:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gregelin/176601 to your computer and use it in GitHub Desktop.
Save gregelin/176601 to your computer and use it in GitHub Desktop.
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
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
data types: :binary :booleen :date :datetime :decimal :float :integer :string :text :time :timestamp
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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment