Results 1 to 2 of 2
Apr 23, 2009, 22:44 #1
- Join Date
- Mar 2009
- 0 Post(s)
- 0 Thread(s)
Problems with displaying submitter in Simply Rails 2
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!
Apr 24, 2009, 09:40 #2
- Join Date
- Jul 2005
- West Springfield, Massachusetts
- 112 Post(s)
- 1 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.login10 Rules for Driving Traffic Using Forums | Ultimate SEO Checklist
External links are nofollow
How to be a Great Online Community Member
Member of the Month for December 2013
Free SitePoint book - Thinking Web: Voices Of The Community
The 2013 SitePoint Awards - Nominations closed - Voting to begin soon
Introducing the new Code Review Forum