Recent Comments
See Also
On Twitter
- good one @github github.com/blog/1492-repo… 2 weeks ago
- Naw @EcoGrrlNetwork. @sonofhans is 42% handsomer. 1 month ago
- @pdxbus how about a share button on arrival detail so my wife knows when I will arrive? http://t.co/q3mtD0gYFt 1 month ago
Archive
- September 2011 (2)
- December 2010 (2)
- July 2010 (1)
- June 2010 (1)
- December 2009 (1)
- November 2009 (1)
- August 2009 (2)
- July 2009 (2)
- March 2009 (1)
- December 2008 (5)
- October 2008 (1)
- September 2008 (1)
- July 2008 (1)
- June 2008 (3)
- February 2008 (1)
- January 2008 (4)
- December 2007 (1)
- November 2007 (3)
- September 2007 (2)
- August 2007 (3)
- July 2007 (5)
- June 2007 (3)
- May 2007 (2)
- April 2007 (1)
- March 2007 (4)
- February 2007 (2)
- January 2007 (2)
- December 2006 (5)
- November 2006 (12)
- September 2006 (1)
- May 2006 (2)
- March 2006 (1)
- February 2006 (5)
- January 2006 (1)
Monthly Archives: August 2007
UJS; RJS versus POJS; Prototype Stack versus JQuery Stack
I am accustomed to using Unobtrusive JavaScript (UJS) in my apps. UJS dynamically adds event handlers to the DOM. These event handers implement behaviors via DOM manipulations and XMLHttpRequests (XHR’s). This approach is in contrast to the historical approach of … Continue reading
Posted in AJAX, RJS templates, Ruby on Rails, script.aculo.us
4 Comments
Logging From Your Rails Models
update 2010/10/16: RAILS_DEFAULT_LOGGER is deprecated. I’m using ActiveRecord::Base.logger now as in: ActiveRecord::Base.logger.debug “value of x is #{x}” read on for the older solution… I just spent five minutes figuring out how to log from a model class in Rails (or … Continue reading
Posted in Ruby on Rails
2 Comments
Ruby Symbol#to_proc — Don’t Forget It!
This is your code: puts %w{A B}.collect{|e| e.downcase}.inspect This is my cooler code: puts %w{A B}.collect( &:downcase).inspect This is how the Ruby Extension Project makes it work: class Symbol def to_proc proc { |obj, *args| obj.send(self, *args) } end end … Continue reading
Posted in Ruby on Rails
1 Comment