RailsCasts Pro episodes are now free!

Learn more or hide this

jcquarto's Profile

GitHub User: jcquarto

Comments by

Avatar

what does "supposed to" mean in this context? "more subject to hacking?", "client side runs slower", etc.? Is there an actual technical downside, other than stylistic preferences?

p.s. I put my js curly braces on their own line. Cuz I'm a rebel and that's how I roll.

Avatar

when I got to the SSL portion of the screencast, everything worked fine in Safari with the same sort of message "Safari can't open page".

however when I switched to Firefox, the error message is quite diff't:

"Secure Connection Failed

An error occurred during a connection to localhost:3000.

SSL received a record that exceeded the maximum permissible length.

(Error code: ssl_error_rx_record_too_long)"

Likewise the log output from the server, which on Safari was:

Started GET "/login" for 127.0.0.1 at 2011-07-28 21:44:32 -0500
  Processing by SessionsController#new as HTML
Redirected to https://localhost:3000/login
Completed 301 Moved Permanently in 1ms
[2011-07-28 21:44:32] ERROR bad URI `?,rz?7?1\x00\x00H\x00??'.
[2011-07-28 21:44:56] ERROR bad URI `?????>]\x03????X?y?\x00\x00H\x00??'.
cache: [GET /login] miss

now, in Firefox , looks like:

Started GET "/login" for 127.0.0.1 at 2011-07-28 21:46:06 -0500
  Processing by SessionsController#new as HTML
Redirected to https://localhost:3000/login
Completed 301 Moved Permanently in 0ms
[2011-07-28 21:46:06] ERROR bad URI `|a\x00\x00F?'.
[2011-07-28 21:46:06] ERROR bad Request-Line `\x16\x03\x00\x00Q\x01\x00\x00M\x03\x00N2\x1E?][4\x01\x00??u?9^?!RY?g0??%?H?\b?\x00\x00&\x00/\x00\x05\x00\x04\x005\x00'.
[2011-07-28 21:47:06] ERROR bad Request-Line `\x16\x03\x01\x00?\x01\x00\x00?\x03\x01N2\x1F*\x10?o-k\eD?\x7F?T??u?9?\eN\x01?.???\x12\x00\x00H\x00??'.

Is this as expected? I note that both say redirected to the SSL equivalent. But the Safari message looks legit whereas the Firefox one looks like more of an error

Edit @sethvargo - fixed code formatting

Avatar

thanks, Tim.. That cleared things up.

Avatar

(newbie alert)

I'm having a hard time understanding how the successful "signed up!" message appears as shown in the video, esp when comparing it to the downloadable episode code. There doesn't seem to be anything in a View or Layout to output flash[:notice]