diff --git a/pages/common/rails.md b/pages/common/rails.md index 7c61f0ce00d3b0..35882fbcf6309c 100644 --- a/pages/common/rails.md +++ b/pages/common/rails.md @@ -8,6 +8,18 @@ `rails new "{{project_name}}"` +- Generate a scaffold for a model named Post, predefining the attributes title and body: + +`rails generate scaffold Post title:string body:text` + +- Run migrations: + +`rails db:migrate` + +- List all routes: + +`rails routes` + - Start local server for current project on port 3000: `rails server`