I personally find ruby so diffrent from everything else
class Book < ActiveRecord::Base
belongs_to :subject
validates_presence_of :title
validates_numericality_of rice, :message=>"Error Message"
end
Doesn't make much sence for people who never have used Ruby before
class Book < ActiveRecord::Base
belongs_to :subject
validates_presence_of :title
validates_numericality_of rice, :message=>"Error Message"
end
Doesn't make much sence for people who never have used Ruby before