]> git.openstreetmap.org Git - rails.git/blob - app/models/diary_entry.rb
Add a stylesheet targeted at print media to get nice printouts.
[rails.git] / app / models / diary_entry.rb
1 class DiaryEntry < ActiveRecord::Base
2   belongs_to :user
3
4   validates_presence_of :title, :body
5   validates_numericality_of :latitude, :allow_nil => true
6   validates_numericality_of :longitude, :allow_nil => true
7   validates_associated :user
8 end