November 2008
5 posts
has_one_accessor
HasOneAccessor is a plugin for ActiveRecord that solves the problem of having associations that act like a attribute. Perhaps only a few users have an openid, so it doesn’t make sense to add an :open_id_url column to your :users table. Instead you create a new model OpenId class OpenId < ActiveRecord::Base belong_to :user end class User < ActiveRecord::Base has_one :open_id ...
Nov 30th
6 tags
SolrQuery - build your solr queries dynamically in...
I’ve been using ActsAsSolr for about 6 months. And at work I developed some code to make SOLR queries work a bit like the conditions in ActiveRecord. Check out my library at Github. http://github.com/matthewrudy/solr_query SolrQuery.build(:keyword => "Feather duster" => "feather duster" SolrQuery.build(:keyword => "clean", :organisation => [organisation1,...
Nov 17th
5 tags
UID problems across a shared mount?
We just moved to new Ubuntu servers. We use file-column (with some modifications) to deal with our file uploads. deploy@jgp-web01:/var/www/oursite$ ls -l public/uploaded_file/file_name/000/000/051/585/ total 4 -rw-r--r-- 1 gerhard www-data 2670 2008-11-15 05:09 MatthewJacobsCV.txt deploy@jgp-web02:/var/www/oursite$ ls -l public/uploaded_file/file_name/000/000/051/585/ total 4 -rw-r--r-- 1 deploy...
Nov 15th
3 tags
“svn switch —relocate svn://oldserver svn+ssh://newserver”
– need to move your svn repository?
Nov 12th
4 tags
Nov 1st