pagecontent/app/controllers/page_contents_controller.rb

9 lines
210 B
Ruby
Raw Normal View History

2014-05-06 09:20:15 +00:00
class PageContentsController < OrbitAdminController
def index
params = OrbitHelper.params
page = Page.where(:page_id => params[:page_id]).first
{
"html" => page.page_contexts.last.content
}
end
end