I''m using the file_column plugin to upload a small avatar, but when I do this: @user.update_attribute("picture", params[:user][:picture]) ... it completely ignores the validations I''ve set for the element before: validates_file_format_of :picture, :in => ["gif", "jpg", "png"] validates_filesize_of :picture, :in => 1.kilobytes..100.kilobytes I''m able to upload PDF''s, textfiles, etc., which is ofcourse rather crappy. I''ve added this to my model, in case you''re wondering: file_column :picture, :base_url => "images/people", :filename => "picture", :store_dir => "public/images/people/", :magick => { :size => ''48x48!'', :crop => ''1:1'', :versions => { :thumb => {:crop => "1:1", :size => "16x16!", :name => "thumb"} } } Has anybody else experienced this problem? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Bump :) Anybody? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Robert wrote:> Bump :) > > Anybody?i already had the same problem and i didn''t find a solution. anybody ? -- 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 -~----------~----~----~----~------~----~------~--~---
I''ve tried including validations.rb in my setup, but that also does not work. On Mar 16, 6:09 pm, Frioffol Friofool <rails-mailing-l...@andreas- s.net> wrote:> Robert wrote: > > Bump :) > > > Anybody? > > i already had the same problem and i didn''t find a solution. > > anybody ? > > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---