Undefined method errors in rails

Discussion in 'Ruby' started by Daniel Mendler, Mar 14, 2008.

  1. Hi all,

    I am currently developing a rails application. After a webserver reboot
    I often get undefined method errors which are caused by wrong types.

    I am using a Builder::XmlMarkup object but sometimes it is interpreted
    as Fixnum resulting in those undefined method errors. But normally the
    code just works.

    Does someone have similar problems or is this only a problem/bug in some
    rails specific classloading code? Could someone clarify how classloading
    works in ruby? Some classes are autoloaded, others aren't?

    Rails is version 2.0.2, Ruby is 1.8.6

    Daniel
     
    Daniel Mendler, Mar 14, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark Goldin

    Errors, errors, errors

    Mark Goldin, Jan 17, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    960
    Mark Goldin
    Jan 17, 2004
  2. Mantorok Redgormor
    Replies:
    70
    Views:
    1,763
    Dan Pop
    Feb 17, 2004
  3. Clay Culver

    Rails - undefined method `headers'

    Clay Culver, Oct 25, 2005, in forum: Ruby
    Replies:
    3
    Views:
    117
    Dave Burt
    Oct 25, 2005
  4. Su Zhang
    Replies:
    3
    Views:
    215
    Su Zhang
    Apr 18, 2011
  5. VK
    Replies:
    45
    Views:
    602
    Dr John Stockton
    Sep 12, 2006
Loading...

Share This Page