app/controllers/content_blocks_controller.rb
# Never trust parameters from the scary internet, only allow the white list through.
Never trust parameters from the scary internet, only allow the white list through.
Never trust parameters from the scary internet only allow the white list through .
def site_params
      params.require(:site).permit(:announcement_text,
                                   :marketing_text,
                                   :featured_researcher,
                                   :about_page)
    end
def site_params params . require ( :site ) . permit ( :announcement_text , :marketing_text , :featured_researcher , :about_page ) end
Never trust parameters from the scary internet, only allow the white list through.
Never trust parameters from the scary internet only allow the white list through .