addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwchatcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgoogleimageimagesinstagramlinklocation-pinmagnifying-glassmailminusmoremuplabelShape 3 + Rectangle 1outlookpersonplusprice-ribbonImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruseryahoo

Re: [ruby-81] copying and comparing model objects

From: Loqi
Sent on: Tuesday, March 4, 2008 8:04 PM
I forgot that all my persistent data must be written to sessions. How 
could I forget that HTTP is stateless? Those automatic hooks like 
after_find seem super useful. I need to remember them. And how 
un-Ruby of me to use =={} instead of .empty? . I'll get it 
eventually. I'm still not so good at properly encapsulating 
responsibilities in the MVC pattern. Good point on moving that code 
into the model. It's much better there.

That pretty much takes care of everything, until I get more skill and 
try to generalize this stuff as a mixin or plugin.

Hey, thanks for the generous help, Sir William.

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy