Sha256: 3fddc1c55518bb052b876c23cf5f994931a2b62650693b1e46e4b437e99d0a47

Contents?: true

Size: 591 Bytes

Versions: 4

Compression:

Stored size: 591 Bytes

Contents

module Refinery
  module PhotoGallery
    module Admin
      class AlbumsController < ::Refinery::AdminController

        crudify :'refinery/photo_gallery/album', :order => "created_at DESC" , :xhr_paging => true

        def create
          @album = Album.new(params[:album])

          if @album.save(params[:album])
            flash[:notice]= t('refinery.crudify.created',:what => "'#{@album.title}'" )

            redirect_to  refinery.upload_photo_gallery_admin_album_photos_path(@album)
          else
            render "new"
          end
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
refinerycms-6hoursdaily-photo-gallery-0.0.5.dev app/controllers/refinery/photo_gallery/admin/albums_controller.rb
refinerycms-6hoursdaily-photo-gallery-0.0.4.dev app/controllers/refinery/photo_gallery/admin/albums_controller.rb
refinerycms-photo-gallery-0.0.2.dev app/controllers/refinery/photo_gallery/admin/albums_controller.rb
refinerycms-photo-gallery-0.0.1.dev app/controllers/refinery/photo_gallery/admin/albums_controller.rb