Can’t imagine life without it!

What is all about?💕
The command uses templates to create a whole lot of things. Running by itself gives a list of available generators:

General options:
-h, [ — help] # Print generator’s options and usage
-p, [ — pretend] # Run but do not make any changes
-f, [ — force] # Overwrite files that already exist
-s, [ — skip] # Skip files that already exist
-q, [ — quiet] # Suppress status output

Please choose a generator below.
Rails:
application_record
assets
channel
controller
generator
helper
integration_test
jbuilder
job
mailbox
mailer
migration
model
resource
scaffold
scaffold_controller
system_test
task

ActiveRecord:
active_record:application_record

TestUnit:
test_unit:channel
test_unit:generator
test_unit:mailbox
test_unit:plugin

Using generators will save you a large amount of time by writing boilerplate code, code that is necessary for the app to work.

Let’s make a controller with an action of hello, which will say something nice to us.

😱 Check out the controller and modify it a little (in ):

Then the view, to display our message (in ):

❣️ You can install more generators through generator gems, portions of plugins you’ll undoubtedly install, and you can even create your own! expm:
https://arsfutura.com/magazine/diy-create-your-own-rails-generator/

Resources :
http://doc.rubyfans.com/rails/guides

SOFTWARE ENGINEER — WEB DEVELOPER WITH HEART FOR FRONT-END, MINIMALISM AND RASMENTALISM.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store