RailsCasts Pro episodes are now free!

Learn more or hide this

Alexander Farley's Profile

GitHub User: asfarley

Site: asfarley.com

Comments by Alexander Farley

Avatar

disposition: "inline" isn't working in Chrome for me. This appears to be somewhat of a known problem with Chrome, something related to Chrome not knowing the file type and deciding not to render it. It works fine in Firefox. Does anybody know a fix?

Update: removing the Mime configuration line seemed to fix this problem. This is using Rails 3.2.1.

Avatar

Answer: this is an additional syntax available in Ruby 1.9.

Avatar

In the users controller, the line

ruby
redirect_to root_url, notice: "Thank you for signing up!"

seems to be giving an error because of how the flash notice is assigned. It goes away when switched to this:

ruby
redirect_to root_url, :notice => "Thank you for signing up!"

Is this a typo or am I doing something else wrong?