ok, paperclip -not paperclisp and In my model the #has_attached_file :photo
is not really commented out. I just did that so I could move forward. --Bob On Feb 24, 7:01 pm, Bob <[email protected]> wrote: > I cannot get paperclip to work - any advice on this. I am running > 1.9.1 on linux. > > ruby script/generate hobo_migration > /home/blehman/.gem/ruby/1.9.1/gems/rails-2.3.5/lib/rails/ > gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is > deprecated and will be removed on or after August 2010. Use > #requirement > Invalid field type: :photo for Contact.has_attached_file > > my model looks like this: > > class Contact < ActiveRecord::Base > > hobo_model # Don't put anything above this > > fields do > #has_attached_file :photo > name :string > template :string > text1 :string > text3 :string > text2 :text > address_1 :text > date_met :date > paid :boolean > notes :text > timestamps > end > > # --- Permissions --- # > > def create_permitted? > acting_user.administrator? > end > > def update_permitted? > acting_user.administrator? > end > > def destroy_permitted? > acting_user.administrator? > end > > def view_permitted?(field) > true > end > > end > > Thanks > --Bob -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
