From d754e1867f7a9852dcfd4fa5c0f4bc4eb07cea81 Mon Sep 17 00:00:00 2001 From: mo k Date: Wed, 20 Feb 2013 20:51:04 -0700 Subject: make sure proper tutorial_tags element is passed to the controller. --- app/models/tutorial.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/models/tutorial.rb') 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 -- cgit v1.2.3