Sha256: fd91b10ce32c1ba7a0b20c663abd4e6328297bba8f6ccc42875f7ef28bda5ad6
Contents?: true
Size: 668 Bytes
Versions: 73
Compression:
Stored size: 668 Bytes
Contents
class ImagesController < InheritedResources::Base respond_to :html, :js, :xml belongs_to :gallery def index index! do |format| if params[:CKEditorFuncNum] format.html {render :action=>:index, :layout=>"image_dialog"} end end end def create create! {edit_gallery_path(@gallery, params.slice(:CKEditor, :CKEditorFuncNum, :langCode))} end def show show! do |format| if params[:CKEditorFuncNum] format.html {render :layout=>"image_dialog"} end end end def collection @images ||= end_of_association_chain. paginate(:page => params[:page], :order => 'created_at DESC' ) end end
Version data entries
73 entries across 73 versions & 1 rubygems