doh!  Thank you Andy

That was staring me in the face and I would have been a long time
finding it.

I am now on to the next issue of figuring out why the link does not
show.


On Feb 25, 7:29 am, Andy Waite <[email protected]> wrote:
> has_attached_file should be outside of the fields block.
>
> Andy
>
> On Feb 25, 3:01 am, 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.

Reply via email to