This is the companion to my YouTube video: https://youtu.be/MJSZ3WcgHeE
https://guides.rubyonrails.org/debugging_rails_applications.html
- Putting debug info into views using
debug
helper (orto_yaml
orinspect
)
This is the companion to my YouTube video: https://youtu.be/MJSZ3WcgHeE
https://guides.rubyonrails.org/debugging_rails_applications.html
debug
helper (or to_yaml
or inspect
)Unknown username "whoopsie" in message bus configuration file (Crouton) | |
For some time I had this notification "Unknown username 'whoopsie' in message bus configuration file" coming up when I started my Ubuntu-server on my Chromebook via crouton. It seemed not to do anything wrong but hey, I hate to see error messages popping up on the screen and not knowing what it really means. | |
In my search I've learned that the user 'whoopsie' is being used for the error reporting daemon in Ubuntu. | |
System Description: | |
Toshiba Chromebook 2: | |
Intel® Celeron® Processor N2840 | |
Intel® HD Graphics | |
4GB DDR3 1600MHz |
class Game | |
attr_gtk | |
def tick | |
defaults | |
input | |
calc | |
render | |
end |
$ pg_dump -h <public dns> -U <my username> -f <name of dump file .sql> <name of my database>
$ psql -U <postgresql username> -d <database name> -f <dump file that you want to restore>
# docker-compose.yml
version: '3'
services:
web:
build: ./
command: 'rails server -b 0.0.0.0 -p 3000'
ports:
- 4000:3000
db/seeds.rb
):rails db:seed
require 'rails_helper' | |
RSpec.describe TodosController, :type => :controller do | |
describe "GET #index" do | |
#describe "POST #create" do | |
#describe "GET #show" do | |
#describe "PATCH #update" do (or PUT #update) | |
#describe "DELETE #destroy" do | |
#describe "GET #new" do |
# This is a skeleton for testing models including examples of validations, callbacks, | |
# scopes, instance & class methods, associations, and more. | |
# Pick and choose what you want, as all models don't NEED to be tested at this depth. | |
# | |
# I'm always eager to hear new tips & suggestions as I'm still new to testing, | |
# so if you have any, please share! | |
# | |
# @kyletcarlson | |
# | |
# This skeleton also assumes you're using the following gems: |
// index.html | |
<div id="chat"> | |
<ul id="message"> | |
<li v-for="message in messages" :key="message.id">{{ message }}</li> | |
</ul> | |
<form @submit="send"> | |
<input type="text" v-model="message"> | |
<button>Send</button> | |
</form> |