Still need help with this. Is it just so easy? I would love some help.
Thanks.
On Aug 28, 7:04 pm, Kim
<Kim.Gri...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I am trying to edit a model with a fleximage. I can create the model
> with out the image by adding:
> self.require_image_data = false
>
> But once a user has added an image they can only upload new images not
> remove the image. When I try to set the model.data = nil
> I get the following error:
> Exception in edit_module: /var/www/ica/html/trunk/public/../config/../
> vendor/plugins/flex_image/lib/flex_image/model.rb:161:in `data=''n
>
> Obviously it is failing in the data.size >0 line in the data= method.
> But shouldn''t the require_image_data=false fix that. I mean how is
it
> creating models without images. I looked in the log and the sql is
> setting data = NULL. I tried that in the controller and it failed.
>
> Any Ideas on what I should do?
>
> Thanks, K
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---