Return to Snippet

Revision: 40442
at February 2, 2011 06:12 by brandonjp


Initial Code
A refresher reference for me because I forget how to do this...

#1:
create a new Ruby on Rails project, run this inside the folder where you want the project:

	rails newproject

then cd into your new project folder

	cd newproject



#2:
generate the Scaffolding for your content types, run this inside your rails project folder

	ruby script/generate scaffold Color name:string shade:string cmyk:string 




#3:
rake together all the classes, migrate them to a database structure

	rake db:migrate




#4:
start the rails server

	script/server

Initial URL

                                

Initial Description
Ruby / Rails - A refresher reference for me because I forget how to do this... create project generate scaffold scaffolding migrate db start server

Initial Title
Ruby / Rails - A refresher reference for me because I forget... create project generate scaffold scaffolding migrate db

Initial Tags
server, rails, ruby

Initial Language
Ruby