Re: [Rails] Re: Problem processing text file after uploading
On Sat, Jul 7, 2012 at 9:21 AM, David M. <lists@ruby-forum.com> wrote:
> The file handling code I have doesn't seem to function unless it happens
> after_save, I'm not sure why that is.
Well, since it's a "learning project" maybe that would be a good place
to start :-)
Alternatively, you might consider pushing the doc-to-text conversion
into a background job, which adds the text of the db record once it's
finished. Or use an Observer to add the text after after_save.
Multiple possibilities...
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home