Sha256: 67a7c2abf4ee76bfbf9980d119a431ec4163e02e4ec026eca1bc9478f184360d
Contents?: true
Size: 449 Bytes
Versions: 18
Compression:
Stored size: 449 Bytes
Contents
class Admin::PagePartsController < Admin::BaseController def new render :partial => "/admin/pages/page_part_field", :locals => {:title => params[:title], :body => params[:body], :new_part => true, :part_index => params[:part_index]} end def destroy part = PagePart.find(params[:id]) if part.destroy render :text => "'#{part.title}' deleted." else render :text => "'#{part.title}' not deleted." end end end
Version data entries
18 entries across 18 versions & 1 rubygems