Skip to content

Instantly share code, notes, and snippets.

@knestler
knestler / rails_cheatsheet.md
Created October 13, 2022 15:34 — forked from cjsim89/rails_cheatsheet.md
Rails v5.2 Cheatsheet

Rails v5.2 Cheatsheet

Updated by: Scott Borecki

[![LinkedIn: scott-borecki][linkedin-badge]][LinkedIn] [![Email: scottborecki@gmail.com][gmail-badge]][gmail] [![GitHub: Scott-Borecki][github-follow-badge]][GitHub]

Please reach out if you have any comments or suggestions for updates!

@knestler
knestler / b2_intermission_work.md
Last active October 7, 2022 23:54 — forked from mikedao/b2_intermission_work.md
B2 Intermission Work Submission

B2 Intermission Work

Answer these Check for Understanding questions as you work through the assignments.

HTML

  1. What is HTML? hyper text markdown language
  2. What is an HTML element? elements tell the browser how to display content
  3. What is an HTML attribute? HTML arrtibutes give more information to elements
  4. What is the difference between a class and an id? When would you use one vs. the other? a class can be used by multiple elements but an id can only be used by one on the same page.
@knestler
knestler / global_scope_examples.md
Created August 25, 2022 16:47 — forked from megstang/global_scope_examples.md
Global Scope Examples

Example 1

x = 10
puts x
puts y

Example 2

Pry Cheat Sheet

Command Line

  • pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)
  • pry -r ./config/environment.rb - load your rails into a pry session

Debugger