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

Version Path
refinerycms-0.9.5.13 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5.12 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5.11 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5.10 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5.9 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5.8 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5.7 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5.6 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5.5 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5.4 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5.3 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5.2 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5.1 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.4.5 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.4.4 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.4.3 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.4.2 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.4.1 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.4 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb