Displaying 1 result from an estimated 1 matches for "creator_is_participant".
2010 Apr 18
1
Getter and Setter with non DB property
Hi,
I can''t find how do i created a getter and setter property for a non db
property. what i have done isnt working, i have a cnt mass assign error.
Here is what i''ve done:
attr_accessor :creator_is_participant
def creator_is_participant
@participe
end
def creator_is_participant=(participe)
if participe == true
@participe = true
else
@participe = false
end
end
Greg
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed t...