Note that there are some explanatory texts on larger screens.

plurals
  1. PONoMethodError in ContainerformatsController#create undefined method `yuvstreams' for #<Containerformat:0x450f560>
    primarykey
    data
    text
    <p>I am getting this error, I don't know what happened, it's been working fine few days before but it's not working now. This is the code:</p> <pre><code>@containerformat = Containerformat.new(params[:containerformat]) if @containerformat.containerFmt == 'TS' @containerformat = Containerformat.new(params[:containerformat]) @transportstream = @containerformat.transportstreams.build(params[:transportstream]) @transportstream.save @program = @transportstream.programs.build(params[:program]) @program.save @user = @containerformat.users.build(params[:user]) @user.save if params[:videoCodec_id]!= nil @stream = @program.streams.build(params[:stream]) @stream.videocodec = Videocodec.find(@stream.videoCodec_id) @stream.save end if params[:audioCodec_id]!= nil @stream = @program.streams.build(params[:stream]) @stream.audiocodec = Audiocodec.find(@stream.audioCodec_id) @stream.save end end if @containerformat.containerFmt == 'PS' @programstream = @containerformat.programstreams.build(params[:programstream]) @subtitle = @programstream.subtitles.build(params[:subtitle]) @subtitle.save @programstream.save @stream = @programstream.streams.build(params[:stream]) @user = @containerformat.users.build(params[:user]) @user.save if params[:videoCodec_id]!= nil @stream = @programstream.streams.build(params[:stream]) @stream.videocodec = Videocodec.find(@stream.videoCodec_id) @stream.save end if params[:audioCodec_id]!= nil @stream = @programstream.streams.build(params[:stream]) @stream.audiocodec = Audiocodec.find(@stream.audioCodec_id) @stream.save end end if @containerformat.containerFmt == 'YUV' @yuvstream = @containerformat.yuvstreams.build(params[:avistream]) #@subtitle = @yuvstream.subtitles.build(params[:subtitle]) #@subtitle.save @yuvstream.save @stream = @yuvstream.streams.build(params[:stream]) @user = @containerformat.users.build(params[:user]) @user.save if params[:videoCodec_id]!= nil #@stream = @programstream.streams.build(params[:stream]) #@stream.videocodec = Videocodec.find(@stream.videoCodec_id) #@stream.save end if params[:audioCodec_id]!= nil #@stream = @programstream.streams.build(params[:stream]) #@stream.audiocodec = Audiocodec.find(@stream.audioCodec_id) #@stream.save end end if @containerformat.containerFmt == 'AVI' @avistream = @containerformat.avistreams.build(params[:avistream]) @avistream.save @stream = @avistream.streams.build(params[:stream]) @user = @containerformat.users.build(params[:user]) @user.save if params[:videoCodec_id]!= nil @stream = @avistream.streams.build(params[:stream]) @stream.videocodec = Videocodec.find(@stream.videoCodec_id) @stream.save end if params[:audioCodec_id]!= nil @stream = @avistream.streams.build(params[:stream]) @stream.audiocodec = Audiocodec.find(@stream.audioCodec_id) @stream.save end end </code></pre> <p>I have yuvstreams as table in my database like other tables avisteams, programstreams table.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload