Ruby on Rails Friday, October 1, 2010

Most of the tutorials I've read suggest that the logic for the
processing be placed in

/lib/paperclip_processors/your_processor_lib.rb

For example: http://thewebfellas.com/blog/2009/2/22/video-thumbnails-with-ffmpeg-and-paperclip

Is the after_save approach in the model a better way?

On Oct 2, 1:12 am, radhames brito <rbri...@gmail.com> wrote:
> On Fri, Oct 1, 2010 at 12:49 PM, Christian Fazzini <
>
> christian.fazz...@gmail.com> wrote:
> > Hi Radhames, do you mind showing what you have for the processor at /
> > lib/paperclip_processors/your_processor_lib.rb ?
>
> Well all this is a simple call in my model, and i call the convert function,
> you can at it as a after_save

--
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.

No comments:

Post a Comment