Skip to content

Instantly share code, notes, and snippets.

View lbraun's full-sized avatar

Lucas Braun lbraun

View GitHub Profile
@cdesch
cdesch / rails_generator_cheat_sheet.md
Last active November 4, 2024 14:42
Rails Generator CheatSheet

Cheat Sheets are greate but they are not a substitute for learning the framework and reading the documentation as we most certainly have not covered every potential example here. Please refer to the Rails Command Line Docs for more information.

Command Line Generator Info

Reference

You can get all of this information on the command line.

rails generate with no generator name will output a list of all available generators and some information about global options. rails generate GENERATOR --help will list the options that can be passed to the specified generator.