So I''m using attachment-fu and just before my attachments get saved, it gets rolled back. See here: http://pastie.caboo.se/165076 I find that I''m getting kicked down into my rescue clause here: http://pastie.caboo.se/165074 I''m not exactly sure why this is happening - what generally causes ActiveRecord to ROLLBACK my inserts? Thanks, Nik --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
my apologies. i forgot to edit the subject line. question re-sent. On Wed, Mar 12, 2008 at 5:50 PM, Reid Oda <reid.oda-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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 >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---