I have models and their association like,
Video 1: -------- n: Script
When users newly create a Video, I want it to create the very first
Script entry together.
I have put
@script = Script.new(:video_id => @video.id, :startp => 0, :text =>
in Video controller, ‘new’ action, but it doesn’t work (:startp value is
determined for the first one).
How can I create a Script entity together with Video?
Also, if possible, I want that first Script entry to be undestroyable.
Do you think I can do it?
Thanks in advance,