💾 Archived View for freeshell.de › tldr › rails-generate.gmi captured on 2024-05-26 at 15:44:00. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-04-28)

-=-=-=-=-=-=-

rails generate

Generate new Rails templates in an existing project.

More information.

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).

CC-BY