/ Published in: Ruby
                    
                                        
Ruby / Rails - A refresher reference for me because I forget how to do this... create project generate scaffold scaffolding migrate db start server
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
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
Comments
 Subscribe to comments
                    Subscribe to comments
                
                