ruby on rails - Merging Passed Parameters -


I have two data arrays sent from a form, which is called transold and the second video that is the actual form is ideal . I need to get [: video_encoded] [: url] and [: video] [: flash_url]

it needs to be passed, when I try and [: transload] [access] Result] [: video_encode] I get equal to no

  print parameter [:. Transmit] {"assembly_id": "d59b4293b3d79d2ccd1948c02421c6a6", "status": "success", "upload": {"video": "" "BBC_on.mp4", "mime": "video / mp34", "ext "Video_format": "avc1", "video_format": "MP4", "size": 601104, "meta": {"width": 720, "height": 404, "video_fps": 25, "video_bitrate" "Video_codec": "ffh264", "audio_bitrate": "128k", "audio_codec": "faad", "duration": 3.07, "device_vendor": zero, "device_name": blank, "device_software": blank, "latitude "", "Longitude": blank}, "url": "http://tmp.transloadit.com/"}}, "result": {"video_encode": {"name": "bbc_one.flv", "Mime": "video / x-flv", "size": 388317, "meta": {"width": 480, "height": 320, "Video_FPS", "FLV", "Steps": ["Encoded", "Export"], "Ext.": 25, "video_bitrate": "512K", "video_format": "FLV1", "video_codec": " "Device_software": null, "latitude": null, "device_software": null, "device_vendor": null, "DEVICE_NAME": "ffflv", "audio_bitrate": "mp3k", "audio_codec": "mp3", "duration": 3.11, "Longitude": null}, "url": "http://s3.transloadit.com/b7deac9c96af6c745e914e25d0350baa/7a/2b09e822265ac2328789b40dcc02ae/bbc_one.flv"}, "video_ode_iphone": {"name": "BBC_on.qt", " Mime ":" Video / Quicktime "," Steps ": [" Encoded_Ephon "," Export "]," Ext. ":" QT "," Size ": 218236," M "Video": "video_format": "avc1", "video_codec": "ffh264", "audio_bitrate": "128k Null, "device_software": null, "latitude": null, "longitude": null, "url", "id", "id" : "Http: // S3.transloadit.com/31/58bcc80d5345e52a42c9773125e8f0/bbc_one.qt"}}}  

I'm trying to use

 < Code> video_links = {: Flash_url = & gt; Param [: Transload] [: Results] [: Video_N Code] [: url],: mp4_url => Params [: transload] [: results] [: video_encode_iphone] [: url]} params [: video]. Merge (Video_Link)  

The problem is simple: : Results! = "Result" or in other words: the key of the typed string in your hash but you can call them symbol . Accessing

with

Comments