Public Gists by tokumine

Gravatar
Mon Oct 26 04:03:41 -0700 2009
1
2
3
desc "populate dataset table"
    task :load_sources => :environment do
      Dataset.delete_all
Gravatar
Mon Oct 05 06:59:15 -0700 2009

      
Gravatar
Mon Oct 05 06:58:59 -0700 2009

      
Gravatar
Mon Oct 13 05:49:57 -0700 2008
1
2
3
# Username or email login for restful_authentication in user.rb model
  def self.authenticate(login, password)
    return nil if login.blank? || password.blank?
Gravatar
Wed Sep 10 09:42:04 -0700 2008
1
2
3
class StarWarsCharacters < ActiveRecord::Base
  named_scope :born_on_tatooine, :conditions => ["birthplace LIKE ?", "Tatooine"]
end
Gravatar
Sat Sep 06 13:34:24 -0700 2008
1
2
3
Who's up to a post-railsconfeu08-coolest-quotes-tshirt-site?
 
Rails doesn't scale! (Oscar Wilde)
Gravatar
Sat Sep 06 06:39:32 -0700 2008
1
2
3
module Rails
  class << self
    def configuration
Gravatar
Wed Sep 03 01:01:00 -0700 2008
1
2
3
Me = 5.freeze
# => 5
Me.frozen?