diff options
| author | mo khan <mo@mokhan.ca> | 2014-07-20 08:48:35 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-07-20 08:48:35 -0600 |
| commit | a4aac3783c9e0bb496de50fc288f4b85b82aab39 (patch) | |
| tree | 69dfcc73de64d09dd471f1c9281557d63728a831 /app/models/tutorial.rb | |
| parent | 969cae58d4fbc2f74595d06879e53bcd4ce9d120 (diff) | |
add create action to tutorials controller.
Diffstat (limited to 'app/models/tutorial.rb')
| -rw-r--r-- | app/models/tutorial.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/tutorial.rb b/app/models/tutorial.rb index 4e6456e5..1dde153e 100644 --- a/app/models/tutorial.rb +++ b/app/models/tutorial.rb @@ -1,5 +1,5 @@ class Tutorial < ActiveRecord::Base - validates :url, :presence => true + validates :url, presence: true belongs_to :user acts_as_taggable |
