Anyone know why my text_area field is being prefilled with "empty_clob()" instead of simply being empty like I would expect? I''m using Oracle 10g so I suspect it''s coming from the oci8 driver somehow? Here''s the code: <% form_for :user do |f| -%> <%= f.text_area :notes, :rows => 2, :cols => 32 %> <% end -%> It should be just an empty text area ready for data to be input. In my migration I''m making the field a text field: t.column :notes, :text I tried adding :default => '''' but that didn''t help. The model for this is still empty at this point. Thanks, -- Greg Donald Cyberfusion Consulting http://cyberfusionconsulting.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 -~----------~----~----~----~------~----~------~--~---
On Thu, 27 Sep 2007, Greg Donald wrote:> In my migration I''m making the field a text field: > > t.column :notes, :textI figured this out, sort of. Instead of :text I''m using :string, :limit 4000. -- Greg Donald Cyberfusion Consulting http://cyberfusionconsulting.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 -~----------~----~----~----~------~----~------~--~---
Anybody have an actual solution instead of a work around? Thanks! On Sep 27, 12:34 pm, Greg Donald <g...-zdvLQZp3jd/juCWzK7aPcyD0QtxuFomUAL8bYrjMMd8@public.gmane.org> wrote:> On Thu, 27 Sep 2007, Greg Donald wrote: > > In my migration I''m making the field a text field: > > > t.column :notes, :text > > I figured this out, sort of. > > Instead of :text I''m using :string, :limit 4000. > > -- > Greg Donald > Cyberfusion Consultinghttp://cyberfusionconsulting.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 -~----------~----~----~----~------~----~------~--~---