search for: save_attach

Displaying 3 results from an estimated 3 matches for "save_attach".

2007 Jun 29
1
attachment_fu validation error
...ment_fu.rb:276:in `temp_paths'' from ./script/../config/../config/../vendor/plugins/ attachment_fu/lib/technoweenie/attachment_fu.rb:270:in `temp_path'' from ./script/../config/../config/../vendor/plugins/ attachment_fu/lib/technoweenie/attachment_fu.rb:236:in `save_attachment?'' from ./script/../config/../config/../vendor/plugins/ attachment_fu/lib/technoweenie/attachment_fu.rb:339:in `set_size_from_temp_path'' from ./script/../config/../config/../vendor/rails/ activerecord/lib/active_record/callbacks.rb:333:in `send''...
2007 Dec 13
4
Attachment_fu problems on updates
...tem_backend.rb:21:in `full_filename'' vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:281:in `temp_paths'' vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:275:in `temp_path'' vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:241:in `save_attachment?'' vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:344:in `set_size_from_temp_path'' vendor/rails/activerecord/lib/active_record/callbacks.rb:307:in `send'' If I update the user without selecting a new picture, the users picture is lost (the db row values...
2006 Oct 07
3
blog_id magic with typo
...almost done, except that...i am stuck at one place. When a user posts a new article, depending upon current blog_id, I would like to set the blog_id attribute of @article object. So..in the admin/content_controller.rb: We have: def new_or_edit if request.post? set_article_author save_attachments logger.info("**** and blog id in article is #{@article.blog_id}") if @article.save set_article_categories set_the_flash redirect_to :action => ''show'', :id => @article.id end end end So, just before the actual save...