<commit_before>=semantic_form_for [:admin, @page] do |f|
  =f.inputs 'Details' do
    =f.input :title
    =f.input :description, :as => :text
    =f.input :recipe
    =f.input :url
  =f.inputs 'Meta Data' do
    =f.input :meta_title, :hint => 'This is the text that will appear in the title bar.  If you don\'t enter anything here, the page title entered above will be used'
    =f.input :meta_keywords, :hint => 'These are keywords that may be taken into account by search engines.  You should enter up to 5 words or phrases separated by commas'
    =f.input :meta_description, :as => :text, :hint => 'This is the description that will be shown by search engines'
  =f.actions

  -if @page.recipe
    =f.inputs 'Content' do
      -@page.recipe.ingredients.each do |i_id, i|
        = render :partial => 'admin/cms/pages/ingredient', :locals => {:semantic_form => f, :section => s, :ingredient => i}
      -@page.recipe.sections.each do |s_id, s|
        = render :partial => 'admin/cms/pages/section', :locals => {:semantic_form => f, :section => s}

    = f.buttons<commit_msg>Fixed issue with page generator<commit_after>=semantic_form_for [:admin, @page] do |f|
  =f.inputs 'Details' do
    =f.input :title
    =f.input :description, :as => :text
    =f.input :recipe
    =f.input :url
  =f.inputs 'Meta Data' do
    =f.input :meta_title, :hint => 'This is the text that will appear in the title bar.  If you don\'t enter anything here, the page title entered above will be used'
    =f.input :meta_keywords, :hint => 'These are keywords that may be taken into account by search engines.  You should enter up to 5 words or phrases separated by commas'
    =f.input :meta_description, :as => :text, :hint => 'This is the description that will be shown by search engines'
  =f.actions

  -if @page.recipe
    =f.inputs 'Content' do
      -@page.recipe.ingredients.each do |i_id, i|
        = render :partial => 'admin/cms/pages/ingredient', :locals => {:semantic_form => f, :section => s, :ingredient => i}
      -@page.recipe.sections.each do |s_id, s|
        = render :partial => 'admin/cms/pages/section', :locals => {:semantic_form => f, :section => s}

    = f.actions
{'fraction_non_alphanumeric': 0.13602941176470587, 'fraction_numerical': 0.0009191176470588235, 'mean_word_length': 3.3280318091451293, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '423062', 'n_tokens_mistral': 731, 'n_tokens_neox': 712, 'n_words': 255}