Piku Shared item: 67 items
View Google Reader Shared items
1 shares
Adapting Ambitiously
via err.the_blog by Chris on January 28, 2008
It’s funny, really. All these people walking around, talking about Ambition. “Oh, Ambition? Yeah, pretty cool.” “Ambition? Impedance mismatch.” “I’m happy with SQL-92 the way it is, thank you very much.” Outrageous!I know, I know. We’ve said some crazy things ourselves. Like how we wanted Ambition to be a Rack for databases. Or, far fetched as it sounds, how we hoped...
Shared by: Piku,
[ Back to top]
1 shares
Different validations for the same ActiveRecord model
via tech on toolmantim.com by (author unknown) on January 28, 2008
... to store a global “current user” from a controller’s before/around filter which you’d then check when performing validations. I don’t particularly like this approach for the simple problem at hand because it pushes the request/response state into the model and makes the interaction between model objects less explicit.My preferred method would be to simply have the creator of the User...
Shared by: Piku,
[ Back to top]
1 shares
ActiveMerchant PDF
via PeepCode Products by (author unknown) on January 28, 2008
by Cody Fauser, ActiveMerchant committer and Shopify developer.Most online businesses need to receive payment. If you’re developing with Ruby, the standard for credit card authorization and capture is ActiveMerchant.ActiveMerchant provides a consistent interface to over 30 gateways all around the world and has processed millions of dollars of transactions since 2006. This 70 page book starts...
Shared by: Piku,
[ Back to top]
1 shares
Ruby gets a Reddit
via YARB - Home by admin on January 26, 2008
Reddit and programming.reddit.com are two of my favorite social news sites.Now, courtesy of James Golick – they just opened ruby.reddit.com – sweet!
Shared by: Piku,
[ Back to top]
1 shares
Episode 90: Fragment Caching
via Railscasts by Ryan Bates on January 27, 2008
Sometimes you only want to cache a section of a page instead of the entire page. Fragment caching is the answer as shown in this episode.
Shared by: Piku,
[ Back to top]
1 shares
Rails TakeFive: Five Questions with Peter Cooper
via FiveRuns Blog - Home by dean on January 24, 2008
Welcome to Round 3 of Rails TakeFive, FiveRuns’ ongoing series of insight and commentary from notable members of the Ruby and Rails community.This week, we’re happy to have Peter Cooper, editor of the popular Ruby news blog Ruby Inside, share his views on Ruby and Rails.FiveRuns: Welcome, Peter. What was your first experience with Ruby and/or Rails and how did it come about?Peter Cooper: I...
Shared by: Piku,
[ Back to top]
1 shares
What's New in Edge Rails: Easier Timezones
via Ryan's Scraps - Blog by ryan on January 24, 2008
The days of forcing time-zone support into your Rails apps with not one, but two plugins are over. It would appear that Rails now has its own way of dealing with timezones via a custom implementation (though it’s still based on the tzinfo gem).Here’s the deal. You can now create an ActiveSupport::TimeWithZone from an instance of a UTC-based Time and then switch between time-zones at...
Shared by: Piku,
[ Back to top]
1 shares
Self-referential has_many :through associations
via has_many :through by Josh Susser on October 30, 2007
This article updates a previous version for the Rails 2.0 way of things. Since there's not much difference, I decided to fix up the example code to be more understandable. After all, not everyone is a discrete math geek.This example updates the one from the previous article. The only significant difference is that you don't need to specify the :foreign_key when using the :class_name...
Shared by: Piku,
[ Back to top]
1 shares
Rails and penis enhancements
via redemption in a blog by Chu Yeow on January 24, 2008
Funniest bug report I’ve seen on the Rails issue tracker: http://dev.rubyonrails.org/ticket/10919. Be sure to read the comments, and the resolution:I appreciate that penis enhancements are the norm for most of the commenters here, but their use is definitely not widespread enough to justify fixing this.
Shared by: Piku,
[ Back to top]
1 shares
Feeds for Free
via err.the_blog by Chris on January 22, 2008
And money for nothing. Or something like that? Sorry, Mark Knopfler. I’ll pay more attention next time.Anyways, let us be painfully aware that we can get Atom feeds for free. Not as in beer or speech, but as in ‘zero lines of code.’ How? Microformats.You and meFormatsAlmost a year has past since we last spoke of microformats, and way more than a year since our first encounter. Seems...
Shared by: Piku,
[ Back to top]