Overcoming Scaffolding ADDICTION

Similar documents
Physical Address: Place of work: Work Phone: Driver s License Number with State Issued: Have you ever had pets run away or disappear? Please explain.

Supporting document Antibiotics monitoring Short database instructions for veterinarians

A Peek Into the World of Streaming

Visiting Lowry Park Zoo

How the Arctic Fox Got Its White Fur. By Maelin

Meeting minutes Current Group Members: Artic. Music. Shylanrose. Maka. CinnnKitten. PrincessKyosh.

Clicker Books: How to Make a Clicker Book Using Clicker Books App v

Recall. Core Rules Applied

Barry county 4-H Dog project notebook. Juniors. First year. Name of 4-H Junior: Name and breed of Dog:

BEGONIA CHATTER CUTTING SWAP. Astro Branch American Begonia Society 4513 Randwick Drive Houston, Texas (713)

User Manual. Senior Project Mission Control. Product Owner Charisse Shandro Mission Meow Cat Rescue and Adoptions, Inc.

So What s in a Word the word Argentine that is?

Squinty, the Comical Pig By Richard Barnum

I hesitated then added. I wasn t able to get a script for the pill

SARG Guide Surrey Amphibian and Reptile Group. SARG Reptile Surveyor s Guide Using SARGWEB. April 2012 Version 1.0. Steve Langham

PNCC Dogs Online. Customer Transactions Manual

2010 Canadian Computing Competition Day 1, Question 1 Barking Dogs!

Everything about the school was dark and shadowy. There were long, narrow corridors and winding staircases and of course there were the girls

HOW TO PROTECT YOUR PET OVER SUMMER

REPORT OF ACTIVITIES 2009 TURTLE ECOLOGY RESEARCH REPORT Crescent Lake National Wildlife Refuge 3 to 26 June 2009

PNCC Dogs Online. Customer Transactions Manual

8A READ-ALOUD. How Turtle Cracked His Shell. Lesson Objectives. Language Arts Objectives. Core Vocabulary

LOVE EVER, HURT NEVER. Discuss what this quotation means. Would it be a good thing to practise?

Mammal Scavenger Hunt Activity

Animal Reputations. By: Abigale Walsh, Mr. Goldfarb s Class, 3/27/2015

Day Care and Boarding General Information and Policies

MISSION 2 Create a mind map for your research on ONE of your animals.

2017 Holiday Gift Catalogue

Why Rabbits Have Long Ears And Short Tails By Jim Peterson

(Untitled) By Courtney Omai Mililani Middle School, 7th Grade

45 min. year. Use 2B or HB pencil only. Time available for students to complete test: 45 minutes

Not for sale - Distribution Free

Judging Schedule Simcoe Performance Dogs Summer Spectacular July 1-2, 2017 CKC Obedience & Rally Obedience Trials

Texel Sheep Society. Basco Interface Guide. Contents

English Language Arts Test Listening Selection

June 2014: Issue Click here to become a Westvet fan on Facebook

OPEN NINTH: CONVERSATIONS BEYOND THE COURTROOM K9TH PROGRAM...EVERYONE'S BEST FRIEND EPISODE 19 MARCH 23, 2017 HOSTED BY: FREDERICK J.

HOW TO PROTECT YOUR PET OVER SUMMER

THE MAINE COON CAT BY LIZA GARDNER WALSH DOWNLOAD EBOOK : THE MAINE COON CAT BY LIZA GARDNER WALSH PDF

Reference Guide Playful Invention Company

Sketch Out the Design

2 P a g e SONG: IT S SNOWING CATS AND DOGS

Hetty s Thanksgiving. Isabella Pansy Alden. Anglocentria Aurora, Colorado

If they don t have a box they do their best to hide

Our training program... 4

First Edition Printed by Friesens Corporation in Altona, MB, Canada. February 2017, Job #230344

Also place two 2x4 boards along the bottom or use bricks to keep off the ground. 16

How to have a well behaved dog

Greyhound Play Day 2008 C-Bar-C Park, Citrus Heights

Santa Rosa Plateau Ecological Reserve

Session 6: Conversations and Questions 1

Little Red Riding Hood

SUZANNE Caleb! Can you turn that down? Jake's trying to sleep! Caleb's voice responds distantly from the other room.

St Margaret College Half Yearly Examinations Name: Class: A: Reading 20 marks HAMSTERS

Taking Care of a fish

Questions and answers for exhibitors entering shows using TOES

BASIC DOG TRAINING. The kind, fair and effective way

ENTRY CLERK MANUAL FOR THE ENTRYCLERK.CFA.ORG WEB APPLICATION. Page 1

Lesson 4: Moo, Oink, Cluck

Something's Going On. Something's going on here in Bethlehem Hustling, bustling, rushing around

[Ben walking home from school approaches Jody and Jenny sitting together on an outdoor bench]

Getting Started. Instruction Manual

HOW TO TALK TO WOMEN. written by. Marnie Mitchell-Lister

Sample Pages Vol. 1. Music, Movement, Signing and More for Children Ages 0-5. TEACHER GUIDE Vol. 1: It s Baby Signing Time

FABULOUS FELINES LESSON 4: Grades K-3 WHY DO CATS DO THAT?

Volunteering with Your Pet Sample Script

Quick Setup Guide Model 5134G

b) Look at the sentences. Where do you find the information in the text? Give line numbers. 1 The kids had a snack on the rocks on Rippon Tor.

Ohio Department of Agriculture Update Tony M. Forshey, DVM State Veterinarian Ohio Department of Agriculture

Workbook. Version 3. Created by G. Mullin and D. Carty

DOWNLOAD OR READ : YOU CAN TRAIN YOUR CAT SECRETS OF A MASTER CAT TRAINER PDF EBOOK EPUB MOBI

MY ANIMAL FRIENDS THE HEN HAS A CHICK

Halo Pet Dog Chew Deterrent

강상윤영어카페

RUBBER NINJAS MODDING TUTORIAL

How I Became A Scientist: Activity Book for 3rd Graders

2019 Community Education Workshops. January-February

Unit 3 The Tiger. 3A Introduction. 3B Song Lyrics. doze perform. brilliant capture. plunge predator. continent crew.

Vocabulary. 1. the group of vertebrates that have hair and nourish their young with milk

All the eating places were closed at that time of the night and it was a long ride into town. I couldn t take him back to my room, so I had to take a

Using social media research methods to identify hidden churches

Going Fishing. Phonics Skill. Digraphs sh, th. Tad is with his mom and his dad at the pond. Tad has his rod. I can get many fish with this.

Training To Help Your Grooming

Stay tuned for upcoming changes to our newsletter!

Mosquitoes in Your Backyard Diversity, life cycles and management of backyard mosquitoes

Explosive Detection Certification

Your New Kitten. Diet:

Package PetfindeR. R topics documented: May 22, Type Package Title 'Petfinder' API Wrapper Version Author Aaron Schlegel

Flying in the Wind (Part 2) By Ellen Schmalholz. The signs were there for me to see: little intake of food and water,

Coding with Scratch - First Steps

Name: Page 1. Student Five. Student Six. Farmer. Bessie (cow) Hank (horse) Pork Chop (pig)

CAT Paid vs. CAT Unpaid November 2012

Cat K-3rd Pack. You may not:

The Worms / Chapter 34 and Partial 35 (pgs )

Hello! The Athens County Dog Shelter is a county government facility under the County Commissioners. It is an open intake, no needless kill shelter.

My name is James I am 11 years old and I am in Year 6.

Dangerous Foods For Cats (Source:

HOW TO MAKE PUPPY CRACK

Fraction Approximation: Closer to Zero, One-half or One whole? CCSS: 3.NF.3, 4.NF.2 VA SOLs: 3.3, 4.2, 5.2

Mina Mauerstein Bail. Illustrated by Gabriel Choquette Edited by Sigrid Macdonald. The Max and Voltaire Series Book One

Transcription:

Overcoming Scaffolding ADDICTION

hi, my name is amy hoy

but... let s talk about you

you... have a problem

script/console generate scaffold foo

POW!

exists app/controllers/ exists app/helpers/ create app/views/foos create test/functional/ dependency model create app/models/ create test/unit/ create test/fixtures/ create app/models/foo.rb create test/unit/foo_test.rb create test/fixtures/foos.yml create app/views/foos/_form.rhtml create app/views/foos/list.rhtml create app/views/foos/show.rhtml create app/views/foos/new.rhtml create app/views/foos/edit.rhtml create app/controllers/foos_controller.rb create test/functional/ foos_controller_test.rb create app/helpers/foos_helper.rb create app/views/layouts/foos.rhtml create public/stylesheets/scaffold.css

it s like... magic

magic that sucks!

the beginnings of withdrawal

how do I make scaffolding...

create prettier forms? link models? create multiple objects?

?????????????

scaffolding is not the answer

ugly

associationignorant

2 Jar 1 Kitten yeah right

class Kitten < ActiveRecord::Base belongs_to :jar end class Jar < ActiveRecord::Base has_many :kittens end

code excess

too damn many files

brainnumbing

fresh start, cold turkey

pssst, this is turkey brrrrrr

what do you need?

kittens create view edit feed put to sleep jars create edit delete?

script/generate controller kittens create view edit feed put_to_sleep

script/generate controller kittens create view edit feed put_to_sleep

script/generate controller kittens create view edit feed put_to_sleep

app/controllers/kittens_controller.rb

script/generate model kitten --skip-migration script/generate model jar --skip-migration

script/generate model kitten --skip-migration script/generate model jar --skip-migration

script/generate model kitten --skip-migration script/generate model jar --skip-migration

app/models/jar.rb and kitten.rb

app/models/jar.rb and kitten.rb

new and create, together at last

app/views/kittens/create.rhtml

app/views/kittens/create.rhtml

but...

app/views/kittens/create.rhtml

/kittens/create Kittens Controller kittens_controller.rb if(params[:kitten])... yep! nope! nope! yep! as yet unspecified show form create.rhtml

incomiiiing!

app/views/kittens/create.rhtml this outputs a YAML dump of any object

any view! any controller!

linky linky

app/controllers/kittens_controller.rb

saving might be nice

app/controllers/kittens_controller.rb

app/controllers/kittens_controller.rb

app/controllers/kittens_controller.rb

app/views/kittens/view.rhtml

app/views/kittens/view.rhtml

isn t that refreshing?

please! no more code! Photo Malingering, http://www.flickr.com/people/malingering/

other fun things to do with forms

partials use other field types create multiple associations create a bunch of records

i m partial

app/views/kittens/create.rhtml create this file app/views/kittens/_kitten_form.rhtml the preceeding underscore means "it's a partial"

select menus kinda hurt. ow.

step 1: preload data in controller step 2: create select tag in view step 3: there is no step 3!

dealing with multiple associations

2 Jar 1 Kittens OMG

step 1: helper method for checks step 2: call helper in view

step 3: deal with array in controller

creating multiple records

step 1: in your view step 2: in your controller

aggregate controllers

in any controller, use any model

app/controllers/home_page_controller.rb

not every model requires a controller

not every action requires a view

app/controllers/home_page_controller.rb

filters are fun

app/controllers/home_page_controller.rb

layouts, partials, views

layouts wrap actions unless you turn 'em off layout action view partial partial partial partial partial partial partial partials can go anywhere... including inside other partials action views: where the action is & they're mapped to controller methods Ruby on Rails Right-Brained Guide

deep breath relax

oy vey

www.slash7.com