# Intro
Welcome! RAILSG is a collection of Ruby on Rails generator command references, and command builders. Each page has tons of info about it's command, plus a GUI editor to explore the flags and options, and build your own commands.
To get started, choose a generator below, or use (⌘+k) to search.
❯ rails g annotate:install
Generate benchmarks to compare performance optimizations. Makes use of the `benchmark-ips` gem as it provides a number of benefits
❯ rails g benchmark
Generate benchmarks to compare performance optimizations. Makes use of the `benchmark-ips` gem as it provides a number of benefits
❯ rails g channel
Generates a new cable channel for the server (in Ruby) and client (in JavaScript). Pass the channel name, either CamelCased or under_scored, and an optional list of channel actions as arguments.
❯ rails g controller
Generates a new controller and its views. Pass the controller name, either CamelCased or under_scored, and a list of views as arguments.
❯ rails g devise
Generates a model with the given NAME (if one does not exist) with devise configuration plus a migration file and devise routes.
❯ rails g devise:controllers
Create inherited Devise controllers in your app/controllers folder.
❯ rails g devise:install
Creates a Devise initializer and copy locale files to your application.
❯ rails g devise:views
Copies Devise views to your application.
❯ rails g generator
Generates a new generator at lib/generators. Pass the generator name as an argument, either CamelCased or snake_cased.
❯ rails g helper
Generates a new helper. Pass the helper name, either CamelCased or under_scored.
❯ rails g job
This generator creates an active job file at app/jobs
❯ rails g mailbox
Generates a new mailbox class in app/mailboxes and invokes your template engine and test framework generators.
❯ rails g mailer
Generates a new mailer and its views. Passes the mailer name, either CamelCased or under_scored, and an optional list of emails as arguments.
❯ rails g migration
Generates a new database migration. Pass the migration name, either CamelCased or under_scored, and an optional list of attribute pairs as arguments.
❯ rails g model
Generates a new model. Pass the model name, either CamelCased or under_scored, and an optional list of attribute pairs as arguments.
❯ rails g new
Generate benchmarks to compare performance optimizations. Makes use of the `benchmark-ips` gem as it provides a number of benefits
❯ rails g resource
Generates a new resource including an empty model and controller suitable for a RESTful, resource-oriented application. Pass the singular model name, either CamelCased or under_scored, as the first argument, and an optional list of attribute pairs.
❯ rails g scaffold
Generates a scaffolded controller, its seven RESTful actions and related views. Pass the model name, either CamelCased or under_scored. The controller name is retrieved as a pluralized version of the model name.
❯ rails g scaffold_controller
Generates a scaffolded controller, its seven RESTful actions and related views. Pass the model name, either CamelCased or under_scored. The controller name is retrieved as a pluralized version of the model name.
❯ rails g sidekiq:job
Generate benchmarks to compare performance optimizations. Makes use of the `benchmark-ips` gem as it provides a number of benefits
❯ rails g stimulus
Generates a new Stimulus controller at the passed path. If running under node, it'll also call the stimulus:manifest:update task to update the controllers/index.js.
❯ rails g system_test
Generates a new system test. Pass the name of the test, either CamelCased or under_scored, as an argument.
❯ rails g task
Generates a new Rake task. Pass the namespace name, and a list of tasks as arguments. This generates a task file in lib/tasks.