zed.0xff.me
Rails 3.x "Crazy Loading" is awesome!
1 2 3 4 5 6 7 8 |
red_items = Item.where(:colour => 'red') red_items.find(1) item = red_items.new item.colour #=> 'red' red_items.exists? #=> true red_items.update_all :colour => 'black' red_items.exists? #=> false |
// actually it’s “Lazy Loading” and stuff. Read more: Active Record Query Interface 3.0.
Looking for more? Head on over to the archives.
Pages
StackOverflow
Categories
- ruby
- linux
- android
- rails
- gentoo
- alchemy
- freebsd
- patch
- netgraph
- полезняшки
- scripts
- xorg
- isp
- x40
- ibm
- c
- extension
- rails3
- подводные камни
- rspec
- iphone
- vimeo
- advanced
- notebook
- acpi
- bug
- iptv
- lltd
- bugs
- firefox
- netflow
- ng_netflow
- wndr3700
- gem
- spam
- openwrt
- жесть
- халява
- bisect
- ructf
- games
- ec2
- opensource
- ruby19
- blog
- fc
- file compare
- binary
- howto
- proguard
- sony
- vaio
- elements
- tablet
- galaxy tab
- samsung
- nginx
- github
- pascal
- ami
- amazon
- upgrade
- java
- mf4010
- mf4018
- webmoney
- memory leaks
- SyncML
- cups
- ipad
- mysql
- хозяйке на заметку
- fork
- magenta
- osx
- release
- awesome
- edge
- passenger
- thin
- mongrel
- radare2
- malware
- вредные советы
- smtp
- sasl
- postfix
- wave
- trojan
- appstore
- ng_sbinat
- ipod
- php
- 2gis
- mc
- honeypot
- sane
- костыли
- kde
- consolekit
- gems
- Яндекс.Метрика
- yandex.metrika
- scanner
- windows
- glossy
- dwarf fortress
- глюки
- buttons
- utf8
- proftpd
- gimp
- ideas
- habr
- ObjC
- boot
- grub2
- UIGlassButton
- flv
- canon
- usb
- nemerge
- cisco
- multicast
- vlc
- hack.lu
- работа
- tricks
- orbitel crm
- crm
- optimus mini three
- optimus
- rss
- feedburner
- ctf
- breader
- lobotomy
- writeup
- benchmark
- performance
- airprint
- psi
- debug sessions
- caching
- dellmgr
- intel
- raid
- literals
- hacks
- multilib
- amd64
- unmangle
- demangle
- unmangler
- interview
- coding
- DoS
- job
- newbies
- b***y
Links
zed.0xff.me © Andrey "Zed" Zaikin. Powered by Enki .