On May 13, 7:51 pm, Gee-off <[email protected]> wrote:
> This is tangential from the course, but I a have a problem with a time-
> only field in MySQL returning as nil unless it is exactly
> "00:00:00" (HH:MM:SS) as stored in a 'time' datatype.
>
> I've played around with various date/time formatting actions in the
> controller, view, and model but I get a variation of the the following
> error:
>
>  NoMethodError in AlbumsController#show
> You have a nil object when you didn't expect it!
You may want to browse this thread:

http://lists.rubyonrails.org/pipermail/rails/2005-March/004285.html

which gives a solution for rescuing nil error.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "ruby-on-rails-programming-with-passion" group.
To unsubscribe from this group, send email to
ruby-on-rails-programming-with-passion-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ruby-on-rails-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to