NoMethodError for time_zone_select in a form
Posted
by Jack
on Stack Overflow
See other posts from Stack Overflow
or by Jack
Published on 2010-06-12T06:10:26Z
Indexed on
2010/06/12
6:12 UTC
Read the original article
Hit count: 396
I've set up my app exactly in line with the Railscasts Time Zone Episode 1 but when I run
<%= f.time_zone_select :time_zone, ActiveSupport::TimeZone.us_zones %>
I get this error
NoMethodError in Users#new
Showing app/views/users/new.html.erb where line #27 raised:
You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occurred while evaluating nil.<=>
With line 27 being the aforementioned line. I am really stuck on this...
© Stack Overflow or respective owner