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

  • SEARCH
  • Home
  • 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 452479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:04:36+00:00 2026-05-12T22:04:36+00:00

I’m not even sure how this broke. And I don’t really know what the

  • 0

I’m not even sure how this broke. And I don’t really know what the error means either. It was working previously.

You have a nil object when you didn't expect it!
The error occurred while evaluating nil.to_sym
  Extracted source (around line #3):

    1: <div id="probes">
    2:  <h1>Edit Probes</h1>
    3:  <% form_for @probe do |f| %>
    4:      <%= f.error_messages %>
    5:    <p>
    6:      <%= f.label "Site name" %><br />

The controller:

def edit
  @probe = Probe.find(params[:id])
end

This is also happening on the index action

You have a nil object when you didn't expect it!
The error occurred while evaluating nil.to_sym

10:   <% for probe in @probes %>
11:     <tr>
12:       <td class="detail" style="padding-left: 100px;" width="50%">
13:         <%=h link_to probe.name, probe %>
14:     </td>
15:       <td class="detail" style="padding-left: 30px;" width="30%">
16:         <%=h @status[x] %>

The controller:

@probes = @current_user.probes.find_existing_probes_for_user
@status_dump = []
for probe in @probes
    @status_dump << probe.status
end
@status = []
for id in @status_dump
    case id
        when 0 then @status << ....
        when 1 then @status << ....
        when 2 then @status << ....
        when 3 then @status << ....
    end
end

The find is coming back with data, I’m using ruby debugger.

EDIT

For the index action, it has to do with the probe in the link to.

EDIT 2
I changed probe to edit_probe_path(probe.id) and that works. I’m still not sure why the edit page is still not working.

  • 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-05-12T22:04:36+00:00Added an answer on May 12, 2026 at 10:04 pm

    This had to do with how my links were setup. After messing with them, it seems to have fixed the issue.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
Does anyone know how can I replace this 2 symbol below from the string
I have some data like this: 1 2 3 4 5 9 2 6
I know there's a lot of other questions out there that deal with this
I don't have much knowledge about the IPv6 protocol, so sorry if the question
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example

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.