diff options
author | Oscar Del Ben <info@oscardelben.com> | 2012-04-20 12:06:47 +0200 |
---|---|---|
committer | Oscar Del Ben <info@oscardelben.com> | 2012-04-20 12:06:47 +0200 |
commit | 2e2afc0ac64190261df4b05428afddea96c8628c (patch) | |
tree | a94a70200a1ee434d3cfaa82e0040c6166d4692a /guides/code/getting_started/app/models | |
parent | dbb4c4ddb601e06fef37f63d644a5297f3292c2a (diff) | |
download | rails-2e2afc0ac64190261df4b05428afddea96c8628c.tar.gz rails-2e2afc0ac64190261df4b05428afddea96c8628c.tar.bz2 rails-2e2afc0ac64190261df4b05428afddea96c8628c.zip |
Add show action in getting started guide
Diffstat (limited to 'guides/code/getting_started/app/models')
-rw-r--r-- | guides/code/getting_started/app/models/post.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/guides/code/getting_started/app/models/post.rb b/guides/code/getting_started/app/models/post.rb index e77e607f3f..21387340b0 100644 --- a/guides/code/getting_started/app/models/post.rb +++ b/guides/code/getting_started/app/models/post.rb @@ -3,7 +3,4 @@ class Post < ActiveRecord::Base :length => { :minimum => 5 } has_many :comments, :dependent => :destroy - - accepts_nested_attributes_for :tags, :allow_destroy => :true, - :reject_if => proc { |attrs| attrs.all? { |k, v| v.blank? } } end |