Commit add6b80975e3409561f7f9a1761850f00b8a0024
1 parent
5c679c5d
Exists in
master
and in
1 other branch
M1.0 - Problema do erro ao clicar no botão .srt (Flash) resolvido
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
app/controllers/videos_controller.rb
| ... | ... | @@ -12,8 +12,10 @@ class VideosController < InheritedResources::Base |
| 12 | 12 | |
| 13 | 13 | end |
| 14 | 14 | def create |
| 15 | - | |
| 16 | - create! { | |
| 15 | + @video = Video.new(params[:video]) | |
| 16 | + @video.user_id = current_user | |
| 17 | + | |
| 18 | + create! { | |
| 17 | 19 | if params[:video][:window_size].present? |
| 18 | 20 | redirect_to generate_path(:id => @video) and return |
| 19 | 21 | else | ... | ... |