Skip to content

Instantly share code, notes, and snippets.

View KimGemRuby's full-sized avatar

KIM_REACT KimGemRuby

View GitHub Profile
class BoardCase
#TO DO : la classe a 2 attr_accessor, sa valeur en string (X, O, ou vide), ainsi que son identifiant de case
def initialize
#TO DO : doit régler sa valeur, ainsi que son numéro de case
end
end
@KimGemRuby
KimGemRuby / rails_generator_cheat_sheet.md
Created September 2, 2021 06:10 — forked from cdesch/rails_generator_cheat_sheet.md
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.