Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (9 sloc) 305 Bytes
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 => {:page_part_counter => params[:index].to_i}
end
end
Jump to Line
Something went wrong with that request. Please try again.