:with_disabled attribute

15 views
Skip to first unread message

siva kumar

unread,
Apr 26, 2013, 6:35:39 AM4/26/13
to rubyonra...@googlegroups.com
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/.

Frederick Cheung

unread,
Apr 27, 2013, 3:57:43 AM4/27/13
to rubyonra...@googlegroups.com


On Friday, April 26, 2013 11:35:39 AM UTC+1, Ruby-Forum.com User wrote:
I'm newbie to RoR, can anybody explain what is the purpose of
":with_disabled => true" in


I don't think that exists at all as an option on belongs_to. What makes you think it should exist? The only similarly named thing is submit_tag which takes a :disable_with option if my memory is correct

Fred 
Reply all
Reply to author
Forward
0 new messages