Skip to content

Instantly share code, notes, and snippets.

View petealbertson's full-sized avatar
🐢

Peter Albertson petealbertson

🐢
View GitHub Profile
@petealbertson
petealbertson / bug.markdown
Created August 16, 2023 03:03
How to report a bug

To fix bugs, we need to make sure the necessary information gets shared with the right people. What's necessary to share might depend on the bug but here in this document, you'll find the most important components necessary to minimize confusion and give the engineering team the best chance to solve the matter as quickly as possible.

Bug reports should contain 3 main components:

  1. Steps to reproduce
  2. Expected result
  3. Actual result

Steps to reproduce

This is arguably the most important part. What steps did you take immediately prior to experiencing the bug? The steps should be clear and easy for anyone to repeat. If the issue is happening on a certain page, that URL should be included. Be as specific as possible and write the steps as a numbered list (as if you were writing a cooking recipe).

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
/**
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
/**
# Controller
def index
@orders = ShopifyAPI::Order.find(:all, params: { limit: 10 })
end
# View
<ul>
<% @orders.each do |order| %>
<li>

Keybase proof

I hereby claim:

  • I am petealbertson on github.
  • I am petealbertson (https://keybase.io/petealbertson) on keybase.
  • I have a public key ASAJGPtC7B-bEtoDWoh613xL_9yciplLUf7JjkKIFEwGBwo

To claim this, I am signing this object:

@petealbertson
petealbertson / gist:10687635
Created April 14, 2014 22:36
fields_for example
// CONTROLLER
def ticket_page
@season_tickets = [Ticket.new, Ticket.new, Ticket.new, Ticket.new]
end
def ticket_create
@season_tickets = params[:tickets]
@group.games.each do |game|
<div class="new_game">
<h1>Create a new match</h1>
<h2>Make a new match suggestion to your friends</h2>
<%= form_tag create_game_url, remote: true, authenticity_token: true do %>
<%= hidden_field_tag 'player1_id', session[:u_id] %>