Update cheatsheets

This commit is contained in:
ivuorinen
2025-02-07 00:17:34 +00:00
parent efdf464901
commit c8986586ce
16 changed files with 308 additions and 11 deletions

View File

@@ -13,6 +13,18 @@ source: https://github.com/tldr-pages/tldr.git
`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`