Showing posts with label heh-nice. Show all posts
Showing posts with label heh-nice. Show all posts

Saturday, August 2, 2008

Merb does it again...

Remember in the old days when you'd create what I can only explain as a "temporary session" in Rails to notify someone ONCE on a page of something? It could have been a form validation error, a success, just anything that you needed to toss up to the user temporarily. Still with me?

Merb now has this wonderful "message" implementation which they've hooked onto the redirect method. So, by calling:

redirect '/some/path', "We're gonna need a bigger boat..."


You receive a variable "message" that contains your message (conventional, right?). It's basically marshalled and plopped into the querystring and then deserialized into the var. I really like this over the Rails method...but, following what the Pug says - I'm not pitting merb against rails.

.erawtaolB !lleh eht tahw ,naem I .noitatnemelpmi laivirt a hcus ekil smees siht nehw o/i pu gnitae ,snoisses pmt etaerc ot tnaw uoy od lleh eht yhw si gniyas m'I llA

It's late, I'm wiped out and that's the "best" I could do for humor.

Monday, April 7, 2008

Rails Cast hits 11, err 100.

Pretty cool little contest going on over at railstcasts. There's even an 8Gb iPod touch up for grabs...I've got my tips picked out already, of course, the tricky part is going to be blogging about them.

I encourage anyone who knows anything about Rails to post something, hopefully this contest has a great turnout and the community as a whole will benefit from some of the minds that aren't exactly "mainstream" (The Dr. Nic's, Fowlers, etc...). Not that there's anything wrong with them, I just think the more insight into this framework the better.

Good luck trying to get my iPod!


MINE!