Sha256: 167b709422a85cb8c9b0f0c0d7753409d2a870b7d646401952f187c4332055c5

Contents?: true

Size: 293 Bytes

Versions: 3

Compression:

Stored size: 293 Bytes

Contents

class Admin::PagePartsController < Admin::ResourceController
  def create
    self.model.attributes = params[model_symbol]
    @controller_name = 'page'
    @template_name = 'edit'
    render :partial => "page_part", :object => model,
      :locals => {:index => params[:index].to_i}
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
radiant-0.7.2 app/controllers/admin/page_parts_controller.rb
radiant-0.7.0 app/controllers/admin/page_parts_controller.rb
radiant-0.7.1 app/controllers/admin/page_parts_controller.rb