Skip to content

Commit

Permalink
Add validates :nam to pin.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Gehani committed Sep 18, 2013
1 parent 45523c3 commit a1f589e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/pin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ class Pin < ActiveRecord::Base
attr_accessible :description

validates :description, presence: true
validates :name, presence: true

belongs_to :user
validates :user_id, presence: true
Expand Down

0 comments on commit a1f589e

Please sign in to comment.