Permalink
Browse files

Added in User Model at 37:14 in tutorial

  • Loading branch information...
1 parent 8b39fee commit 9b0f847adba7d0cdc52eb07838012d4d12bef66f @Boo-urns committed Apr 4, 2011
Showing with 1 addition and 2 deletions.
  1. +0 −2 Gemfile.lock
  2. +1 −0 app/models/user.rb
View
@@ -28,7 +28,6 @@ GEM
activemodel (= 3.0.5)
activesupport (= 3.0.5)
activesupport (3.0.5)
- annotate-models (1.0.4)
arel (2.0.9)
builder (2.1.2)
diff-lcs (1.1.2)
@@ -87,7 +86,6 @@ PLATFORMS
ruby
DEPENDENCIES
- annotate-models
rails (= 3.0.5)
rspec-rails (= 2.0.0.beta.18)
sqlite3
View
@@ -1,3 +1,4 @@
class User < ActiveRecord::Base
attr_accessible :name, :email
+ validates :name, :presence => true
end

0 comments on commit 9b0f847

Please sign in to comment.