-
Archives
- June 2010
- April 2010
- March 2010
- February 2010
- January 2010
- November 2009
- October 2009
- September 2009
- July 2009
- May 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2005
-
Meta
Category Archives: rails
Site Launch — Tales of the Unexpected
Last week saw the launch of TOTU: Tales of the Unexpected, a Summer Madness and Exodus project. The site was developed by me with visual identity design by Connie & Craig, the super-talented folks over at
Posted in blog, meaningful labor, rails
Leave a comment
Ruby on Rails: Get some random records
EDIT AGAIN: Much better.. To get a ‘num_reqd’ array of random objects, you can use something like this. named_scope :large, :conditions => ['image_file_name IS NOT ?', nil] named_scope :small, :conditions => ['small_image_file_name IS NOT ?', nil] def self.get(num_reqd,features_arr=[],size=”large”) if size==”small” … Continue reading
Posted in Code, blog, learning, rails
Leave a comment
Simple Thinking Sphinx on Dreamhost
*** Please note – this will probably not work (at all) (for more than a day of light use) without Cron use. And isn’t at all authorised by Dreamhost!! *** For a recent client project I’ve used a Dreamhost unlimited … Continue reading
Posted in learning, meaningful labor, rails, ruby
Tagged dreamhost, rails, railscasts, search, sphinx, thinking sphinx, tutorial
Leave a comment
Rails / LAMP / WordPress Setup Guide
I’ve had huge amounts of pain getting WordPress set up locally over the last few weeks on my old machine and when it struck again with my new development environment it definitely time to write down the required steps to … Continue reading
It’s been quiet around here
I have six draft posts in the wings waiting to be pushed out, works in progress related to technologies I’ve been working with lately for Contrast.ie Working on a still-hush-hush project with the lads best known for their rock star … Continue reading
Git Pro Tips!
Stumbled across this fella on Twitter today, noticed he worked at Slide (who make successful/annoying Facebook Apps). None the less (I joke) he writes a blog at http://www.unethicalblogger.com/ and has recently been writing a series of ‘ProTips’ on using Git … Continue reading
Ruby Uninitialized Constant Error (Mental Note)
The reason I always get initialized constant errors occurring in Ruby is accidentally naming models the plural form of the database table name and not letting Rails automatically create the pluralisations. script/generate scaffold contact_skill contact_id:integer skill_id:integer description:string not script/generate scaffold … Continue reading
Posted in learning, meaningful labor, rails
Tagged rails, ruby, script generate, uninitialized constants
4 Comments