Sha256: 3759cfb697c7c2733635f3bef9ecf1f42ee174c92d6f55e1629094d148bd5c09
Contents?: true
Size: 512 Bytes
Versions: 11
Compression:
Stored size: 512 Bytes
Contents
module Cms class PageComponentsController < Cms::ApplicationController layout false respond_to :json def new @default_type = Cms::ContentType.default @content_types = Cms::ContentType.other_connectables end def update @page_component = PageComponent.new(params[:id], params[:content]) if @page_component.save respond_with(@page_component) else respond_with(@page_component.errors, :status => :unprocessable_entity) end end end end
Version data entries
11 entries across 11 versions & 2 rubygems