- Created at: mm/dd/yyyy
- Author: Name
You control a [PLAYER TYPE] in this [TOP DOWN / SIDE VIEW / ISOMETRIC] game where [USER INPUT TYPE] makes the player [DESCRIPTION OF PLAYER MOVEMENT].
class ApplicationController < ActionController::Base | |
# While in such a small app, this extraction into a concern seems unnecessary. | |
# I included this abstraction as an example of DRY and modular code.. | |
include SetRequest | |
end |
<%= form_with model: @article do |form| %> | |
<div class="field"> | |
<%= form.label :title %> | |
<%= form.text_field :title, placeholder: 'Title' %> | |
</div> | |
<div class="field"> | |
<input id="article_content" type="hidden" name="article[content]" | |
value="<%= form.content %>"> | |
<trix-editor input="article_content"></trix-editor> |
class SomeModel < ApplicationRecord | |
validates :email, format: { | |
with: URI::MailTo::EMAIL_REGEXP, | |
message: 'requires a valid email format' | |
} | |
end |
# Rails helper config stuff... | |
# Because `let!' is always run before any `before` calls, you have to manually | |
# overide the constant in the rails helper | |
SomeClass.send :remove_const, 'FILE_NAME' | |
SomeClass.const_set 'FILE_NAME', 'spec/fixtures/files/something/cool.yml' |
\documentclass{article} | |
\usepackage[utf8]{inputenc} | |
\usepackage{amsmath} | |
\begin{document} | |
\begin{align*} | |
x y& = k\\ | |
(x + \Delta x) (y - \Delta y)& = k\\ | |
(x + \Delta x) (y - \Delta y)& = x y |