SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Mar 2009
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problems with displaying submitter in Simply Rails 2

    Hi all,

    Having problems in page 283 of Simply Rails 2 book where I am trying to display the submitter.

    I'm getting this message:
    You have a nil object when you didn't expect it!
    The error occurred while evaluating nil.login

    I'd post more of the error code but it appears that the forums block the post as it thinks I'm trying to spam it with email and links.

    Thanks for your help!

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,191
    Mentioned
    191 Post(s)
    Tagged
    2 Thread(s)
    This is a rather common problem. The book mentions the need to give the Story entries created earlier in the book a user_id value (or delete them and create all new ones), but many seem to miss that. These threads should be of help.
    http://www.sitepoint.com/forums/show...ight=nil.login
    http://www.sitepoint.com/forums/show...ight=nil.login
    http://www.sitepoint.com/forums/show...ight=nil.login
    http://www.sitepoint.com/forums/show...ight=nil.login


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
  •