SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Feb 2005
    Posts
    109
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    SystemStackError?

    while im trying a couple of codes from the book, i tried to open a page, and it successfully loaded, then, when i refreshed, an error now shows
    SystemStackError: stack level too deep: SELECT * FROM categories WHERE (categories.id = 1) LIMIT 1
    what is this?i tried to undo some of the steps i've done, but with no luck, i can't fix this. there are two errors actually, 1 is the above code, the other is something like a connection to mysql is lost, somthing like that. i really can't fix this for i am a newb in RoR. thanks in advance.

  2. #2
    SitePoint Member
    Join Date
    Nov 2006
    Location
    Austin, TX
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can you paste the actual errors with the stack and line numbers? it sounds like infinite recursion.
    wtf242
    ProgrammingBooks.org - Programming Books Ranked by Programmers
    Turn of the Crank - My blog
    Robot Walrus - My Art Prints/Posters Blog

  3. #3
    SitePoint Zealot
    Join Date
    Feb 2005
    Posts
    109
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok, thanks for the reply.hope this helps.

    the error message:
    SystemStackError: stack level too deep: SELECT * FROM categories WHERE (categories.id = 1) LIMIT 1

    where the error is pointing:

    Extracted source (around line #10):
    7:
    8: <% for category in @all_categories %>
    9: <tr>
    10: <td><%= h(category.long_name) %></td>
    11: <td><%= link_to 'Edit', :action => 'edit', :id => category %></td>
    12: <td><%= link_to 'Destroy', {:action => 'destroy', :id => category}, :confirm => 'Are you sure?' %></td>
    13: </tr>


    should i include the traces?it is very long.but i dont mind pasting it here though.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •