Sha256: 0be9fc950e11f97ec5246cd60446c0af8b302bcd0402d3fd978c408cf0cdf3dc
Contents?: true
Size: 626 Bytes
Versions: 3
Compression:
Stored size: 626 Bytes
Contents
module Refinery module PhotoGallery module Admin class AlbumsController < ::Refinery::AdminController cache_sweeper AlbumSweeper 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
3 entries across 3 versions & 1 rubygems