app/controllers/manifest/content_blocks_controller.rb in manifest-rails-0.1.0 vs app/controllers/manifest/content_blocks_controller.rb in manifest-rails-0.1.1
- old
+ new
@@ -11,10 +11,11 @@
def create
@content_block = ContentBlock.new(content_block_params)
if @content_block.save
+ expire_all_pages
redirect_to manifest_content_blocks_path
else
render 'new'
end
end
@@ -25,18 +26,21 @@
def update
@content_block = ContentBlock.find(params[:id])
if @content_block.update_attributes(content_block_params)
+ expire_all_pages
redirect_to manifest_content_blocks_path
else
render 'edit'
end
end
def destroy
@content_block = ContentBlock.find(params[:id])
@content_block.destroy
+
+ expire_all_pages
redirect_to manifest_content_blocks_path
end
private