Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8285465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:28:23+00:00 2026-06-08T11:28:23+00:00

I keep getting the error below when trying to edit any of the data

  • 0

I keep getting the error below when trying to edit any of the data from any of the engine’s i’ve created using refinerycms. What would cause this and how can i troubleshoot it?

Error

 NameError in Refinery/success_stories/admin/success_stories#edit

Showing /Users/tomcaflisch/Sites/PersonalTrainingKT/app/views/refinery/admin/_form_actions.html.erb where line #59 raised:

undefined local variable or method `delete_url' for #<#<Class:0x007fd0e6282f08>:0x007fd0e33d6fd8>

Extracted source (around line #59):

56:                 :id => cancel_button_id,
57:                 :class => "close_dialog button") unless hide_cancel %>
58: 
59:     <%= local_assigns[:after_cancel_button] -%>
60:   </div>
61:   <div class='form-actions-right'>
62:     <%= local_assigns[:before_delete_button] -%>

/refinery/success_stories/admin/success_stories/edit.html.erb

<%= render 'form' %>

/refinery/success_stories/admin/success_stories/_form.html.erb

<%= form_for [refinery, :success_stories_admin, @success_story] do |f| -%>
  <%= render '/refinery/admin/error_messages',
              :object => @success_story,
              :include_object_name => true %>


  <div class='field'>
    <%= f.label :name -%>
    <%= f.text_field :name, :class => 'larger widest'  -%>

  </div>

  <div class='field'>
    <%= f.label :goal -%>
    <%= f.text_field :goal -%>

  </div>


  <div class='field'>
    <%= f.label :occupation -%>
    <%= f.text_field :occupation  -%>

  </div>

  <div class='field'>
    <%= f.label :age -%>
    <%= f.text_field :age  -%>

  </div>

  <div class='field'>
    <%= f.label :beginning_weight -%>
    <%= f.text_field :beginning_weight  -%>

  </div>

  <div class='field'>
    <%= f.label :current_weight -%>
    <%= f.text_field :current_weight  -%>

  </div>

  <div class='field'>
    <%= f.label :gym -%>
    <%= f.text_field :gym  -%>

  </div>

  <div class='field'>
    <%= f.label :before_image -%>
    <%= render '/refinery/admin/image_picker',
               :f => f,
               :field => :before_image_id,
               :image => @success_story.before_image,
               :toggle_image_display => false %>

  </div>

  <div class='field'>
    <%= f.label :after_image -%>
    <%= render '/refinery/admin/image_picker',
               :f => f,
               :field => :after_image_id,
               :image => @success_story.after_image,
               :toggle_image_display => false %>

  </div>

  <div class='field'>
    <div id='page-tabs' class='clearfix ui-tabs ui-widget ui-widget-content ui-corner-all'>
      <ul id='page_parts'>
        <% [:story].each_with_index do |part, part_index| %>
          <li class='ui-state-default<%= ' ui-state-active' if part_index == 0 %>'>
            <%= link_to t("#{part}", :scope => "activerecord.attributes.refinery/success_stories/success_story", :default => part.to_s.titleize), "##{part}" %>
          </li>
        <% end %>
      </ul>
      <div id='page_part_editors'>
        <% [:story].each do |part| %>
          <div class='page_part' id='<%= part %>'>
            <%= f.text_area part, :rows => 20, :class => 'wymeditor widest' -%>
          </div>
        <% end %>
      </div>
    </div>

  </div>

  <%= render '/refinery/admin/form_actions', :f => f,
             :continue_editing => false,
             :delete_title => t('delete', :scope => 'refinery.success_stories.admin.success_stories.success_story'),
             :delete_confirmation => t('message', :scope => 'refinery.admin.delete', :title => @success_story.name) %>
<% end -%>
<% content_for :javascripts do %>
  <script>
    $(document).ready(function(){
      page_options.init(false, '', '');
    });
  </script>
<% end %>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T11:28:24+00:00Added an answer on June 8, 2026 at 11:28 am

    It seems to me that you have overridden app/views/refinery/admin/_form_actions.html.erb and you’ve commented out line #33 which (ordinary, in this version) reads:

    delete_url          ||= eval("refinery.#{Refinery.route_for_model(f.object.class)}(#{f.object.id})")
    

    If you remove the # comment at the start then you will find that you problem goes away 🙂

    Phil

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On the query below I keep getting this error: Cannot read the next data
As the title says, keep getting this error when trying to compile. From Googling
I keep getting the following error when trying to parse some html using BeautifulSoup:
I'm trying to compile an MPI_Exchange function but keep getting the below errors. Error:
I'm working on a GWT app, and keep getting the error shown below. I
I'm trying to install a package that uses global-linum-mode and keep getting: error Autoloading
I'm trying to code some stuff for a game but I keep getting error
Keep getting this error after inserting a subdatasheet into a query and trying to
I keep getting this error on emulator: I copied this from a tutorial and
I'm trying to use sqlite in a 'data services' class like below. I keep

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.