Jquery-upload

This commit is contained in:
Thomas Blazek
2013-08-22 00:08:06 +02:00
parent f0349f9909
commit a2f3608d8f
7 changed files with 27 additions and 5 deletions

View File

@@ -25,7 +25,9 @@ class FotosController < ApplicationController
# GET /fotos/new.json
def new
@foto = Foto.new
@gallery = Gallery.find_by_id(params[:gallery_id])
@foto.gallery_id = @gallery.id
@foto.datei=@original_filename
respond_to do |format|
format.html # new.html.erb
format.json { render json: @foto }