My visitors can create party organisator profiles, and I want assign
them as the creators (the field creator_id in the organisators table
references a member in the members table).
To do that I tried it with before_validation:
creator = Member.find 1
Sadly, this does not work. The validation
Still tells me, that creator needs a value.
What’s wrong there? Somehow the attribute gets not filled with a
value… I tried ith with self.creator = Member.find 1, and this would
work, but surely is not clean, because creator is no static variable…
Thanks for help.