SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2006
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Sitepoint Ruby Book

    Hey all,

    Just a question relating to the Ruby on Rails book from Sitepoint, I appear to be getting an error telling me that

    @story.user.login is nil.


    However, when I run it in the console, story.user.login has a value stored in in and returns it correctly.

    It just seems to be the login it is complaining about being equal to 0, anyone have the same problem?

    Cheers

  2. #2
    SitePoint Guru
    Join Date
    Aug 2005
    Posts
    986
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you post controller code + the code that generates this error + what you typed into the console?


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
  •