PDA

View Full Version : Applying foreign key during initialize gives me a view error


rubyonrails-talk
August 31st, 2006, 08:57 PM
Hi all,
I'm trying to set the foreign key of a new Company entity to the
organization id I have in the session.
Here's the code in Company...
============================== =
def initialize(org_id)
if !org_id.nil?
# Link new company to the organization logged in.
@organization_id = org_id

More... (http://groups.google.com/group/rubyonrails-talk/msg/864922566dc5118b)