ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey...
Transcript of ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey...
![Page 1: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/1.jpg)
ADDICTION
OvercomingScaffolding
![Page 2: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/2.jpg)
hi, my name is amy hoy
![Page 3: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/3.jpg)
but... let’s talk about
you
![Page 4: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/4.jpg)
you... have a problem
![Page 5: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/5.jpg)
![Page 6: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/6.jpg)
script/console generate scaffold foo
![Page 7: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/7.jpg)
POW!
![Page 8: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/8.jpg)
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
![Page 9: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/9.jpg)
it’s like... magic
![Page 10: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/10.jpg)
magic that sucks!
![Page 11: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/11.jpg)
![Page 12: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/12.jpg)
![Page 13: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/13.jpg)
![Page 14: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/14.jpg)
the beginnings
of withdrawal
![Page 15: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/15.jpg)
how do I make scaffolding...
![Page 16: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/16.jpg)
create prettier forms?
link models?
create multiple objects?
![Page 17: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/17.jpg)
? ???
??
? ???
??????
![Page 18: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/18.jpg)
![Page 19: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/19.jpg)
scaffolding is not the
answer
![Page 20: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/20.jpg)
![Page 21: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/21.jpg)
![Page 22: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/22.jpg)
ugly
![Page 23: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/23.jpg)
association-ignorant
![Page 24: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/24.jpg)
Jar2
Kitten1
yeah right
![Page 25: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/25.jpg)
class Jar < ActiveRecord::Base
has_many :kittens
end
class Kitten < ActiveRecord::Base
belongs_to :jar
end
![Page 26: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/26.jpg)
code excess
![Page 27: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/27.jpg)
![Page 28: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/28.jpg)
too damn many files
![Page 29: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/29.jpg)
![Page 30: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/30.jpg)
brain-numbing
![Page 31: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/31.jpg)
fresh start, cold turkey
![Page 32: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/32.jpg)
brrrrrrpssst, this is turkey
![Page 33: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/33.jpg)
what do you need?
![Page 34: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/34.jpg)
createvieweditfeedput to sleep
createeditdelete
kittens jars
?
![Page 35: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/35.jpg)
![Page 36: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/36.jpg)
script/generate controller kittens create view edit feed put_to_sleep
![Page 37: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/37.jpg)
script/generate controller kittens create view edit feed put_to_sleep
![Page 38: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/38.jpg)
script/generate controller kittens create view edit feed put_to_sleep
![Page 39: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/39.jpg)
app/controllers/kittens_controller.rb
![Page 40: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/40.jpg)
script/generate model kitten --skip-migration
script/generate model jar --skip-migration
![Page 41: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/41.jpg)
script/generate model kitten --skip-migration
script/generate model jar --skip-migration
![Page 42: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/42.jpg)
script/generate model kitten --skip-migration
script/generate model jar --skip-migration
![Page 43: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/43.jpg)
app/models/jar.rb and kitten.rb
![Page 44: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/44.jpg)
![Page 45: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/45.jpg)
app/models/jar.rb and kitten.rb
![Page 46: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/46.jpg)
new and create,
together at last
![Page 47: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/47.jpg)
![Page 48: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/48.jpg)
![Page 49: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/49.jpg)
app/views/kittens/create.rhtml
![Page 50: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/50.jpg)
app/views/kittens/create.rhtml
![Page 51: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/51.jpg)
![Page 52: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/52.jpg)
but...
![Page 53: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/53.jpg)
app/views/kittens/create.rhtml
![Page 54: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/54.jpg)
![Page 55: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/55.jpg)
/kittens/create
Kittens Controller
as yet unspecified
if(params[:kitten])...
kittens_controller.rb
show formcreate.rhtml
yep!nope! nope!yep!
![Page 56: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/56.jpg)
incomiiiing!
![Page 57: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/57.jpg)
app/views/kittens/create.rhtml
this outputs a YAML
dump of any object
![Page 58: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/58.jpg)
![Page 59: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/59.jpg)
any view! any controller!
![Page 60: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/60.jpg)
linky linky
![Page 61: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/61.jpg)
app/controllers/kittens_controller.rb
![Page 62: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/62.jpg)
saving might be nice
![Page 63: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/63.jpg)
app/controllers/kittens_controller.rb
![Page 64: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/64.jpg)
app/controllers/kittens_controller.rb
![Page 65: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/65.jpg)
![Page 66: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/66.jpg)
app/controllers/kittens_controller.rb
![Page 67: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/67.jpg)
app/views/kittens/view.rhtml
![Page 68: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/68.jpg)
app/views/kittens/view.rhtml
![Page 69: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/69.jpg)
![Page 70: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/70.jpg)
isn’t that refreshing?
![Page 71: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/71.jpg)
Photo © Malingering, http://www.flickr.com/people/malingering/
please! nomore code!
![Page 72: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/72.jpg)
other fun things to do with forms
![Page 73: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/73.jpg)
partials
use other field types
create multiple associations
create a bunch of records
![Page 74: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/74.jpg)
i’m partial
![Page 75: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/75.jpg)
app/views/kittens/create.rhtml
app/views/kittens/_kitten_form.rhtmlcreate this file
the preceeding
underscore means
"it's a partial"
![Page 76: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/76.jpg)
select menus kinda hurt. ow.
![Page 77: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/77.jpg)
step 1: preload data in controller
step 2: create select tag in view
step 3: there is no step 3!
![Page 78: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/78.jpg)
dealing with multiple associations
![Page 79: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/79.jpg)
Jar2
Kittens1
OMG
![Page 80: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/80.jpg)
step 1: helper method for checks
step 2: call helper in view
![Page 81: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/81.jpg)
step 3: deal with array in controller
![Page 82: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/82.jpg)
creating multiple records
![Page 83: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/83.jpg)
step 1: in your view
step 2: in your controller
![Page 84: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/84.jpg)
aggregate controllers
![Page 85: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/85.jpg)
in any controller, use any model
![Page 86: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/86.jpg)
app/controllers/home_page_controller.rb
![Page 87: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/87.jpg)
not every model
requires a controller
![Page 88: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/88.jpg)
not every action requires a view
![Page 89: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/89.jpg)
app/controllers/home_page_controller.rb
![Page 90: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/90.jpg)
filters are fun
![Page 91: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/91.jpg)
app/controllers/home_page_controller.rb
![Page 92: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/92.jpg)
layouts, partials,
views
![Page 93: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/93.jpg)
action viewpartial
partial
partial
partial
partial
partial
partial
layout
layouts wrap actions
action views: where the action is
partials can go anywhere...
unless you turn 'em off
including inside other partials
& they're mapped to controller methods
Ruby on Rails Right-Brained Guide
![Page 94: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/94.jpg)
deep breathrelax
![Page 95: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/95.jpg)
oy vey
![Page 96: ADDICTION - Slash7slash7.com/presentations/overcoming_scaffolding...brrrrrr pssst, this is turkey what do you need ? create view edit feed put to sleep create edit delete kittens jars?](https://reader033.fdocuments.us/reader033/viewer/2022061003/60b19ce16d7ca902923abf24/html5/thumbnails/96.jpg)
www.slash7.com