SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Mar 2009
    0 Post(s)
    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
    West Springfield, Massachusetts
    198 Post(s)
    3 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.


Posting Permissions

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