💾 Archived View for freeshell.de › tldr › rails-generate.gmi captured on 2022-06-11 at 23:41:22. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-04-28)
-=-=-=-=-=-=-
Generate new Rails templates in an existing project.
rails generate
rails generate model {Post} {title:string} {body:text}
rails generate controller {Posts} {index} {show} {new} {create}
rails generate migration {AddCategoryToPost} {category:string}
rails generate scaffold {Post} {title:string} {body:text}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).