Skip to content

Instantly share code, notes, and snippets.

@jgrazulis
jgrazulis / rails http status codes
Created March 31, 2022 20:58 — forked from mlanett/rails http status codes
HTTP status code symbols for Rails
HTTP status code symbols for Rails
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings.
Status Code Symbol
1xx Informational
100 :continue
101 :switching_protocols
102 :processing

The Problems (This is for Mac's with M1 chip)

  1. There was a conflict in two different installations (one being installed via the application, the other being installed via homebrew)
  2. Something else was running on port 5432
  3. Could not install pg gem

1. Completely uninstall Postgresql and start fresh.

  • Uninstalled postgresql using homebrew. You can use brew list to see all of the versions that you may have installed. (Note if you do have more than one version installed you will have to specify which version to brew uninstall)
@jgrazulis
jgrazulis / Capybara.md
Created January 23, 2022 22:27 — forked from tomas-stefano/Capybara.md
Capybara cheatsheet

Capybara Actions

# Anchor
click_link 'Save'

# Button
click_button 'awesome'

# Both above

Rails Step By Step “Guide”

Start a new rails project:

Reference: https://github.com/turingschool-examples/task_manager_rails

This will start a new Rails App with postgresql as database and skip the usage of Spring and Turbolinks (method used in task_manager):

rails new task_manager -T -d="postgresql" --skip-spring --skip-turbolinks

@jgrazulis
jgrazulis / rails_cheatsheet.md
Created December 2, 2021 16:08 — 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!

@jgrazulis
jgrazulis / Jessica_Grazulis_mod_0_plan.md
Last active August 27, 2021 00:12
Gameplan for success in Mod 0

H1 Gameplan for success in Mod 0

H2 Calendar

  1. Create a calendar with a realistic timeline
  2. Include wellness activities as well as personal committements
  3. Re-visit previous week's calendar to check what worked and what to revise before creating new calendar.

H2 Stick with it

⋅Persistence is key

⋅Ask for help when needed!

Session 2 HW

CAREFULLY READ ALL THE INSTRUCTIONS BEFORE STARTING THESE EXERCISES!

To start this assignment:

  1. Click the button in the upper right-hand corner that says Fork. This is now your copy of the document.
  2. Click the Edit button when you're ready to start adding your answers.
  3. To save your work, click the green button in the bottom right-hand corner. You can always come back and re-edit your gist.

Session 1 HW

CAREFULLY READ ALL THE INSTRUCTIONS BEFORE STARTING THESE EXERCISES!

To start this assignment:

  1. Click the button in the upper right-hand corner that says Fork. This is now your copy of the document.
  2. Click the Edit button when you're ready to start adding your answers.
  3. To save your work, click the green button in the bottom right-hand corner. You can always come back and re-edit your gist.