GitHub User: arenaling
Ryan, or anybody who can help :)
i'm planning to use active admin for my website. For some forms, i want to initialize its field assigned with its user information.
For example I have 3 tables, admin_users, agents, packets, admin_users has_one agents, and agents has_many. In Packet new form, i want to assign agent_id field with current agent.
I've been trying to assign before_create in packet model but none is work. So how can I assign value before showing create page?