aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortwinturbo <me@broadcastingadam.com>2012-04-29 10:49:56 -0700
committertwinturbo <me@broadcastingadam.com>2012-04-29 10:49:56 -0700
commit331007ff304df8f59830c7d4b0a001132fbdacb0 (patch)
treed2b65a7c75e281ed2c19a7a1a1c8c4252b8a608b
parent110f3f458afcb4f35d3baa1b5c14c264655dfac9 (diff)
parent74f328f0ab7b20694037385adb5220e340a36bd7 (diff)
downloadrails-331007ff304df8f59830c7d4b0a001132fbdacb0.tar.gz
rails-331007ff304df8f59830c7d4b0a001132fbdacb0.tar.bz2
rails-331007ff304df8f59830c7d4b0a001132fbdacb0.zip
Merge branch 'master' of github.com:lifo/docrails
-rw-r--r--guides/source/getting_started.textile1
1 files changed, 1 insertions, 0 deletions
diff --git a/guides/source/getting_started.textile b/guides/source/getting_started.textile
index 6a761b6a46..02cc7be029 100644
--- a/guides/source/getting_started.textile
+++ b/guides/source/getting_started.textile
@@ -2127,6 +2127,7 @@ class Post < ActiveRecord::Base
has_many :comments, :dependent => :destroy
has_many :tags
+ attr_protected :tags
accepts_nested_attributes_for :tags, :allow_destroy => :true,
:reject_if => proc { |attrs| attrs.all? { |k, v| v.blank? } }