Last active
March 16, 2020 05:06
-
-
Save JeremyOttley/06b9a2756d1b0eea2bf5a76369770400 to your computer and use it in GitHub Desktop.
Rails CheatSheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
#CHEATSHEET_DIR = ".cheatsheets" | |
cheatsheet = File.open("#{CHEATSHEET_DIR}/rails_cheatsheet.txt", "r") | |
reader = ->line { puts line } | |
cheatsheet.each_line &reader | |
#IO.foreach("#{CHEATSHEET_DIR}/rails_cheatsheet.txt") &reader |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
############################################################################## | |
# DIRECTORIES | |
############################################################################## | |
app/ # Core application (app) code, including models, views, controllers, and helpers. | |
app/assets # Applications assets such as cascading style sheets (CSS), JavaScript files, and images. | |
bin/ # Binary executable files. | |
config/ # Application configuration. | |
db/ # Database files. | |
doc/ # Documentation for the application. | |
lib/ # Library modules. | |
lib/assets # Library assets such as cascading style sheets (CSS), JavaScript files, and images. | |
log/ # Application log files. | |
public/ # Data accessible to the public (e.g. via web browsers), such as error pages. | |
bin/rails # A program for generating code, opening console sessions, or starting a local server. | |
test/ # Application tests. | |
tmp/ # Temporary files. | |
vendor/ # Third-party code such as plugins and gems. | |
vendor/assets # Third-party assets such as cascading style sheets (CSS), JavaScript files, and images. | |
config.ru # A configuration file for Rack middleware. | |
############################################################################## | |
# VARIABLES | |
############################################################################## | |
############################################################################## | |
# FILE COMMANDS | |
############################################################################## |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment