John Maxwell
2010-Sep-10 19:08 UTC
PostgreSQL 8.3 not storing ''Date'' field type with Rails 3.0
Hi there, I''ve searched far and wide for an answer to this. I am using Rails 3.0.0 with Postgresql8.3 and ActiveRecord. Almost everything works fine - I have the normal timestamps, which store correctly, and a field called ''time'' which is of the type ''time'' and this works too. However, I also have a ''date'' field, of type ''date'', which never stores any data. The data is being posted correctly through the form, but it never ends up in PostgreSQL, and no error messages to help. Can anyone think of what might be going on? I''m at my wits end. Thanks, John -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Robert Pankowecki (rupert)
2010-Sep-11 07:34 UTC
Re: PostgreSQL 8.3 not storing ''Date'' field type with Rails 3.0
attr_accessible does not include the column maybe ? Could you post the code how you fill the column in the model via irb, the results of that and sql statement that gests executed ? Robert Pankowecki -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.