CHANGE: pretty_toolbar für Foto

This commit is contained in:
HausdorffHimself
2013-09-11 21:51:59 +02:00
parent 2cff08fd6c
commit 3e8950ba64
3 changed files with 5 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
class FotosController < ApplicationController
before_filter {@toolbar_elements=[]}
# GET /fotos
# GET /fotos.json
def index
@@ -27,6 +28,8 @@ class FotosController < ApplicationController
@foto = Foto.new
@gallery = Gallery.find_by_id(params[:gallery_id])
@foto.gallery_id = @gallery.id
@toolbar_elements << {:hicon => 'icon-arrow-left', :text => I18n.t('common.back'), :path => gallery_path(params[:gallery_id]) }
respond_to do |format|
format.html # new.html.erb
format.json { render json: @foto }