Skip to content

Instantly share code, notes, and snippets.

@kirillshevch
kirillshevch / rails_new_options_help.md
Last active February 16, 2025 11:59
"rails new" options for generating a new Rails application

Run rails new --help to see all of the options you can use to create a new Rails application:

Output for Rails 8+

Usage:
  rails COMMAND [options]

You must specify a command:
@lfender6445
lfender6445 / gist:9919357
Last active March 31, 2025 13:09
Pry Cheat Sheet

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

@tomas-stefano
tomas-stefano / Capybara.md
Last active December 6, 2024 09:30
Capybara cheatsheet

Capybara Actions

# Anchor
click_link 'Save'

# Button
click_button 'awesome'

# Both above