diff app/models/ssamr_user_detail.rb @ 60:cf39b52d24b4 luisf

DEVELOPMENT COMMIT: The description can now be seen and edited BUT when a new user registers the informations is not saved to the correct table.
author luisf
date Wed, 01 Dec 2010 18:04:19 +0000
parents 215c92fd5954
children aedfe093ec32
line wrap: on
line diff
--- a/app/models/ssamr_user_detail.rb	Wed Dec 01 00:21:03 2010 +0000
+++ b/app/models/ssamr_user_detail.rb	Wed Dec 01 18:04:19 2010 +0000
@@ -1,3 +1,5 @@
 class SsamrUserDetail < ActiveRecord::Base
-  belongs_to :user  
+  belongs_to :user
+
+  validates_presence_of :user
 end