|
||||||||||||||
|
||||||||||||||
Updated: June 21, 2007August 7, 2006 Install latest Xcode and Macports (Darwinports) first. Install PHP dependencies: sudo port install \ jpeg \ libpng \ freetype \ tiff \ XFree86 \ gettext \ xpm \ libmcrypt \ mhash PHP 4: ./configure \ --prefix=/usr/local/php4 \ --with-config-file-path=/usr/local/php4/lib \ --with-apxs=/usr/sbin/apxs \ --with-curl \...
June 21, 2007 Three rabbits escape from a testing lab and find an entire field full of carrots. They eat themselves into a stupor and sleep throughout the night. The next morning, they find an entire field full of female rabbits with no males in sight. They screw themselves into a stupor and sleep throughout the night. The next morning, the rabbits get to talking. "I'm gonna go back to that...
Updated: June 12, 2007December 13, 2005 Here is the announcement : 15 months after the first public release, Rails has arrived at the big 1.0. What a journey! We've gone through thousands of revisions, tickets, and patches from hundreds of contributors to get here. I'm incredibly proud at the core committer team, the community, and the ecosystem we've raised around this framework. Rails 1.0 is mostly about mak...
Updated: June 12, 2007June 3, 2006 I am reading the book Ruby for Rails by David Black. This book is beginner level for web developers wanting to get started with Ruby on Rails and have little or no Ruby experience. The author uses a lot of words to express his points. The same things could be said with much fewer words. The book has good coverage of everything you need to know about Ruby to make good us...
Updated: June 12, 2007August 9, 2006 If your script/breakpointer doesn't work, try starting it like this: script/breakpointer -c druby://localhost:12345
Updated: June 12, 2007November 9, 2006 It is possible to use the select helper to produce a working multi option select list. First here is how not to do it: <%= select 'group', 'user_id[]', @users . collect { |u| [ u.name, u.id ] }, {}, { :multiple => true , :size => @users . size } %> And this isn't e...
Updated: June 12, 2007January 18, 2007 My favorite MVC framework made a major release today. If you haven't tried Rails yet, you should. If you tried it previously, you should try it again.
Updated: June 12, 2007January 27, 2007 There's quite a few methods floating around the 'net on how to cleanup old sessions from your database. I think using cron is a good last resort but my prefered way is to let natural server usage do it instead: class ApplicationController < ActionController :: Base before_filter :clean def clean ActiveRecord :: Base . connection . e...
Updated: June 12, 2007February 6, 2007 In your Rubyonrails app you may at some point need a list of all your controllers, here's how I do it: def get_controllers controllers = [] glob = RAILS_ROOT + ' /app/controllers/*_controller.rb ' Dir . glob ( glob ). each do | f | file = File . basename ( f ). gsub ( / ^(.+)_controller.rb /, ' \1 ') ... |
|
|||||||||||||
|
||||||||||||||