Ruby on Rails Friday, April 26, 2013

I'm newbie to RoR, can anybody explain what is the purpose of
":with_disabled => true" in

belongs_to :person, :class_name => 'Party', :foreign_key => 'person_id',
:with_disabled => true

Because I'm getting the following error

Unknown key(s): with_disabled

FYI: I couldnt find any documenttion for it.

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment