paperclip_with_hobo problems
Reported by sistemas (at avantvision) | February 18th, 2009 @ 07:56 AM
hello i have been trying for too long to get to work your paperclip with hobo plugin so i thought it's time to ask the jedi hobo masters.
I have followed all steps listed in the paperclip_with_hobo and i keep getting three string fields showing: File Name , size and Content type.
Thanks in advance for your help.
Comments and changes to this ticket
-
sistemas (at avantvision) February 22nd, 2009 @ 03:12 AM
i got rid of the three string fields by defining the form tag in application.dryml but it's not working, it doesn't save anything.
<def tag="form" for="Projectattachment"> <form merge param="default"> <error-messages param/> <input:pattachment/> <div param="actions"> <submit label="Save" param/><or-cancel param="cancel"/> </div> </form> </def>
-
sistemas (at avantvision) February 22nd, 2009 @ 03:14 AM
Processing ProjectattachmentsController#create_for_project (for 127.0.0.1 at 2009-02-21 21:13:45) [POST] Parameters: {"project_id"=>"5-popotitos-primor", "page_path"=>"projectattachments/new_for_project", "authenticity_token"=>"2b716733e5db3480e220960a28d44152f1948de1", "projectattachment"=>{"project_id"=>"5", "user_id"=>"2"}} User Load (0.5ms) SELECT * FROM "users" WHERE ("users"."id" = 2) Project Load (0.4ms) SELECT * FROM "projects" WHERE ("projects"."id" = 5) [paperclip] Paperclip attachment pattachment on Projectattachment initialized. Projectattachment Create (0.5ms) INSERT INTO "projectattachments" ("project_id", "updated_at", "pattachment_content_type", "pattachment_file_name", "pattachment_file_size", "user_id", "created_at") VALUES(5, '2009-02-22 03:13:45', NULL, NULL, NULL, 2, '2009-02-22 03:13:45') [paperclip] Saving attachments. [paperclip] Saving files for pattachment [paperclip] Deleting files for pattachment [paperclip] Writing files for pattachment Redirected to /projectattachments/9 Completed in 18ms (DB: 3) | 302 Found [http://localhost/projects/5-popotitos-primor/projectattachments] SQL (1.2ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'
-
Tom Locke March 12th, 2009 @ 10:42 AM
- State changed from new to invalid
I'm not sure if this is a bug as such with the plugin - it's a very limited and simple plugin at this stage. This is more of a forum question - can you post it over there?
Maybe you already did... Anyway - just cleaning up the tickets here, so I'm closing this, but feel free to post (again?) on the forum
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป