This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p id="notice"><%= notice %></p> | |
<h1>Styles</h1> | |
<%= turbo_stream_from "styles" %> | |
<%= turbo_frame_tag "styles" do %> | |
<%= render @styles %> | |
<%end%> | |
<%= link_to 'New Style', new_style_path %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= turbo_frame_tag dom_id(style) do %> | |
<div class="card m-4"> | |
<div class="card-title"> | |
<%= style.name %> | |
</div> | |
<div class="card-body"> | |
<%= style.description %> | |
</div> | |
<div class="card-footer bg-transparent border-success"> | |
<%= link_to 'Edit', edit_style_path(style) %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="card m-4"> | |
<div class="card-title"> | |
<%= style.name %> | |
</div> | |
<div class="card-body"> | |
<%= style.description %> | |
</div> | |
<div class="card-footer bg-transparent border-success"> | |
<%= link_to 'Edit', edit_style_path(style) %> | |
<%= link_to 'Destroy', style, method: :delete, data: { confirm: 'Are you sure?' } %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p id="notice"><%= notice %></p> | |
<h1>Styles</h1> | |
<%= render @styles %> | |
<%= link_to 'New Style', new_style_path %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p id="notice"><%= notice %></p> | |
<h1>Styles</h1> | |
<table> | |
<thead> | |
<tr> | |
<th>Name</th> | |
<th>Description</th> | |
<th colspan="3"></th> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
development: | |
adapter: redis | |
url: redis://redis:6379/1 | |
test: | |
adapter: test | |
production: | |
adapter: redis | |
url: <%= ENV.fetch("REDIS_URL") { "redis://redis:6379/1" } %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
app: | |
build: | |
context: . | |
dockerfile: Dockerfile | |
args: | |
VARIANT: "2.7" | |
NODE_VERSION: "lts/*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jobs: | |
rubocop: | |
name: Rubocop | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-ruby@v1 | |
with: | |
ruby-version: 2.7.2 | |
- name: Install Rubocop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
rspec: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: &default | |
adapter: postgresql | |
encoding: unicode | |
# For details on connection pooling, see Rails configuration guide | |
# https://guides.rubyonrails.org/configuring.html#database-pooling | |
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> | |
host: db | |
user: postgres | |
password: postgres |