# Attachment-fu - debug help

**URL:** <https://www.ruby-forum.com/t/attachment-fu-debug-help/131755>\
**Category:** Rails\
**Created:** [March 13, 2008, 1:15am UTC](https://www.ruby-forum.com/t/attachment-fu-debug-help/131755 "2008-03-13T01:15:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nik\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ee59a6/32.png) [@Nik\_B](https://www.ruby-forum.com/u/Nik_B)\
**Post date:** [March 13, 2008, 1:15am UTC](https://www.ruby-forum.com/t/attachment-fu-debug-help/131755/1 "2008-03-13T01:15:52Z")

</div>

So I’m using attachment-fu and just before my attachments get saved,  
it gets rolled back.

See here: [Parked at Loopia](http://pastie.caboo.se/165076)

I find that I’m getting kicked down into my rescue clause here:  
[http://pastie.caboo.se/165074](http://pastie.caboo.se/165074)

I’m not exactly sure why this is happening - what generally causes  
ActiveRecord to ROLLBACK my inserts?

Thanks,  
Nik

---

<div class="post-metadata">

**Author:** ![Nik\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ee59a6/32.png) [@Nik\_B](https://www.ruby-forum.com/u/Nik_B)\
**Post date:** [March 13, 2008, 1:51am UTC](https://www.ruby-forum.com/t/attachment-fu-debug-help/131755/2 "2008-03-13T01:51:06Z")

</div>

hi all,

i’m working on a rails app that calls a ruby script which writes to  
$stdout. i’d like somehow intercept that text and write it in realtime  
(usuing ajax?) to the web browser. does anyone have general (or  
specific)  
hints about how to approach this?

i can’t change the code of the the called script, which is currently  
called  
using backticks.

thanks for any help!!

-reid

---

<div class="post-metadata">

**Author:** ![Nik\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ee59a6/32.png) [@Nik\_B](https://www.ruby-forum.com/u/Nik_B)\
**Post date:** [March 13, 2008, 2:37am UTC](https://www.ruby-forum.com/t/attachment-fu-debug-help/131755/3 "2008-03-13T02:37:23Z")

</div>

my apologies. i forgot to edit the subject line. question re-sent.
