Permalink
Switch branches/tags
Nothing to show
Commits on Oct 9, 2009
  1. Got active record finders to do case-insensitive lookups, using the f…

    myronmarston committed Oct 9, 2009
    …ollowing methods:
    
    	- Dynamic finders - User.find_by_username('greyghost')
    	- Hash conditions - User.find(:first, :conditions => { :username => 'greyghost' })
    	- Array conditions using question marks - User.find(:first, :conditions => ['username = ?', 'greyghost'])
    	- Array conditions using symbols - User.find(:first, :conditions => ['username = :u', { :u => 'greyghost' }])