ffmprovisr/app/controllers/GenerateController.rb

23 lines
427 B
Ruby
Raw Normal View History

2014-07-06 05:16:27 +02:00
class GenerateController < ApplicationController
enable :sessions
get '/' do
erb :'index'
end
post '/' do
@input = params[:input]
# @output = params[:input][:video_format]
# session['generate'] = params[:input]
# @output = Generate.new(session['generate'])
@middle = Generate.new(@input)
@output = @middle.output
erb :'generate'
end
get '/generate' do
erb :'index'
end
end