search for: scriptscontrol

Displaying 2 results from an estimated 2 matches for "scriptscontrol".

Did you mean: script_control
2012 Feb 07
2
save method (create action) saves twice
...that??? After executing the saving method, the following messages appear consecutively in the command console where the rails server is up. They seem similar to each other, but two separate SQL actions. Started POST "/scripts" for 127.0.0.1 at 2012-02-07 19:17:53 +0900 Processing by ScriptsController#create as JS Parameters: {"utf8"=>"✓", "authenticity_token"=>"xxx+gv5Cr9GjC0UpqfH89qgnRii4=", "script"=>{"video_id"=>"1", "startp"=>"0", "endp"=>"20", "text&quot...
2012 Feb 22
3
Parent id for find_or_create method
Rails 3.1.3 I have tables, Video and Script having association, Video 1 --- n Script So, every Script needs the parent id, in this case, video_id. If I simply create a new Script instance, the view renders as follows. <%= render :partial => "new_script", :locals => { :script => Script.new(:video_id => @video.id)} %> which works fine. Now I would like to