I added a time_zone_select field to my User signup form and added a column (:tz) to my User table.
<td>Select Timezone</td><td><%= f.time_zone_select :tz %></td>
However, it is not saving to the database with any value… i.e. if I call
<%= current_user.tz %> nothing is displayed.
Any ideas on this one? Probably a simple solution like assigning values to the time zones, but I’m not sure where to begin.
Thanks in advance.
Check that you have added
:tzto yourattr_accessiblemethod at the top of whatever model you added thetzcolumn too.