Skip to content

Instantly share code, notes, and snippets.

View cjsim89's full-sized avatar
🏳️‍🌈

Chris Simmons cjsim89

🏳️‍🌈
  • Turing School of Software & Design
  • Columbus, OH
  • 04:21 (UTC -04:00)
View GitHub Profile
@cjsim89
cjsim89 / block_scope_examples.md
Created December 1, 2021 23:17 — forked from megstang/block_scope_examples.md
Block Scope Examples 14-19

Example 14

numbers = [1,2,3]
total = 0
numbers.each do |number|
  total += number
end

p total
@cjsim89
cjsim89 / rails_cheatsheet.md
Created July 25, 2022 15:21 — forked from Scott-Borecki/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!

@cjsim89
cjsim89 / Capybara Cheat Sheet.md
Last active August 24, 2022 17:14 — forked from alexbrinkman/Capybara Cheat Sheet.md
A List of Methods for Capybara

Navigating

visit "/projects"
visit post_comments_path(post) # when using `resources` syntax

Clicking links and buttons

click_link "id-of-link" # click_link "#my-id"
click_link "Link Text" # click_link "View Task"
@cjsim89
cjsim89 / heroku_pg_db_reset.md
Created February 16, 2023 17:56 — forked from zulhfreelancer/heroku_pg_db_reset.md
How to reset PG Database on Heroku (for Rails app)?

It's important to note that running this reset will drop any existing data you have in the application

How to reset PG Database on Heroku?

  • Step 1: heroku restart
  • Step 2: heroku pg:reset DATABASE (no need to change the DATABASE)
  • Step 3: heroku run rake db:migrate
  • Step 4: heroku run rake db:seed (if you have seed)

One liner