Add missing action to content blocks controller
The code works without this action because both the route and the view are specified, and by default Rails renders the view when there's no action defined. However, the code is easier to understand if the action is present in the controller, which is what we do most of the time.
This commit is contained in:
@@ -11,6 +11,9 @@ class Admin::SiteCustomization::ContentBlocksController < Admin::SiteCustomizati
|
|||||||
@headings_content_blocks = Budget::ContentBlock.all
|
@headings_content_blocks = Budget::ContentBlock.all
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def new
|
||||||
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
if is_heading_content_block?(@content_block.name)
|
if is_heading_content_block?(@content_block.name)
|
||||||
heading_content_block = new_heading_content_block
|
heading_content_block = new_heading_content_block
|
||||||
|
|||||||
Reference in New Issue
Block a user