Note that there are some explanatory texts on larger screens.

plurals
  1. PORails Tutorial 3 : Can't get app to work after section 9.3.3
    primarykey
    data
    text
    <p>I've been faithfully been following along with Rails Tutorial 3 and been loving it but am totally stuck with where I've gone wrong after section 9.3.3. Signin Success -> Current user.</p> <p>I run the rspec tests rspec/spec but have one failure in my sessions_helper.</p> <p>For some reason the controller.current_user doesn't == @user and I can't for the life of me figure out where I went wrong or why this doesn't work. I understand where things got to for it to fail but can't work out why.</p> <p>What's more frustrating to me as I'm starting out with rails is I don't know where to even start trying to debug this or what the debugging process is.</p> <p>I would be eternally grateful if anyone wanted to take on the challenge of forking this from my github [https://github.com/markstewie/railstut_sampleapp][1] and trying to work out the problem. I would be even more grateful if anyone could explain the process you would go through to debug a problem like this... I'm seriously stumped.</p> <p>/////////////////// SOLUTION /////////////////////////</p> <p>Sorry guys, I've just found the problem!!! At last...</p> <p>in session_helper I had.</p> <pre><code> def remember_token cookies.signed(:remember_token) || [nil,nil] </code></pre> <p>rather than</p> <pre><code> def remember_token cookies.signed[:remember_token] || [nil,nil] </code></pre> <p>This has been by far the hardest section to understand and I still don't fully but at least it's working now.</p> <p>Thanks for your time! Mark.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload