Hi all,

I'm desperatly trying to get paperclip work with my application. I followed
exactly what is described by Gert Thiel here
http://github.com/GertThiel/paperclip_with_hobo/blob/master/README.markdownbut
apparently there's something that I missed.
First off all, it seems that the tag definition that I put into my
application.dryml is not taken into account and the form that correspond to
my photo never appears. It only appears when I modify directly the tag
definition in the file rapid/form.dryml. When doing like this, I can browse
my computer and put a filename in the form. But when I save it, nothing
happens.

Below is the definition of my class :

class Profile < ActiveRecord::Base

  hobo_model # Don't put anything above this

  fields do

        firstname :string
        name :string

        title :string
    presentation :text
        #presentation  :markdown #:textile

        publish :boolean

    timestamps
  end

    has_attached_file :photo,
                :path => ":rails_root/public/images",
                :style => {:medium => "300x300>", :thumb => "100x100>"}

    belongs_to :owner, :class_name => "User", :creator => true

And here is my application.dryml


<include src="paperclip" plugin="paperclip_with_hobo"/>

<def tag="app-name">SCY Plus</def>

<def tag="input" for="Paperclip::Attachment">
    <%= file_field_tag param_name_for_this, attributes %>
</def>

<def tag="form" for="Profile">
  <form merge multipart param="default">
    <error-messages param/>
    <field-list fields="firstname, name, title, presentation, photo" param/>
    <div param="actions">
      <submit label="Save" param/><or-cancel param="cancel"/>
    </div>
  </form>
</def>

If anybody could tell me what I'm doing wrong it would be helpfull.

Best regards,

Jaonary

--~--~---------~--~----~------------~-------~--~----~
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