diff options
| author | mo k <mo@mokhan.ca> | 2013-02-20 20:51:04 -0700 |
|---|---|---|
| committer | mo k <mo@mokhan.ca> | 2013-02-20 20:51:04 -0700 |
| commit | d754e1867f7a9852dcfd4fa5c0f4bc4eb07cea81 (patch) | |
| tree | 567a6844fd3c2e0e56bf28bbd1fff55f14666867 /app/models/tutorial.rb | |
| parent | a97c035a584f2d355ce54185481db530a9662c4a (diff) | |
make sure proper tutorial_tags element is passed to the controller.
Diffstat (limited to 'app/models/tutorial.rb')
| -rw-r--r-- | app/models/tutorial.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/tutorial.rb b/app/models/tutorial.rb index a74f40e0..311ccc64 100644 --- a/app/models/tutorial.rb +++ b/app/models/tutorial.rb @@ -1,5 +1,6 @@ class Tutorial < ActiveRecord::Base attr_accessible :description, :heading, :url, :image_url, :user_id, :author, :author_url + validates :url, :presence => true belongs_to :user acts_as_taggable |
