ara.t.howard wrote:> am i missing something obvious about ar, or is there no clear way to
> do this:
>
> record.attribute = nil
>
> or equivalent to set an attribute to ''NULL'' ??
>
>
> thanks.
>
> a @ http://drawohara.com/
> --
> we can deny everything, except that we have the possibility of being
> better. simply reflect on that.
> h.h. the 14th dalai lama
how is the record.column defined? (if it is defined as ''not
null'' then
presumably, you won''t be able to define the attribute as null/nil)
how did you create the db-table? via rake / migrations / sql hand
creation / ?
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---