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

Version Path
refinerycms-0.9.5.31 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5.30 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5.29 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5.28 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5.27 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5.26 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5.25 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5.24 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5.23 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5.22 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5.21 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5.20 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5.19 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5.18 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5.17 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5.16 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5.15 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb
refinerycms-0.9.5.14 vendor/plugins/pages/app/controllers/admin/page_parts_controller.rb