Sha256: bd9fef43ad14efac4d60fa42c03a3c48264c009206b294e46d19396cb72db329
Contents?: true
Size: 454 Bytes
Versions: 20
Compression:
Stored size: 454 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
20 entries across 20 versions & 1 rubygems