=begin rdoc
 Query model class: represents user queries stored in the database
 Author:: Ana Kovatcheva. 2005
 © Copyright:: iCookWare Team 2005  
=end

class Query < ActiveRecord::Base
	belongs_to :user
	
	validates_numericality_of :ranking, :serving, :complexity, :on => :create
	validates_presence_of :fridge, :serving
	#format should be like "Eier Bier Tomaten"
	#validates_format_of :fridge, :with => /^[a-zA-ZäöüÄÖÜ]+( s* \s+[a-zA-ZäöüÄÖÜ]+)*\s*$/ , :message => "Format wrong! Piss off!"
	

	
end
