[Rails] Re: Paperclip style not working with proc

2010-10-20 Thread Christian Fazzini
bump On Oct 14, 10:58 pm, Christian Fazzini wrote: > Anyone have a solution to this problem? > > On Oct 12, 12:36 pm, Christian Fazzini > wrote: > > > My form submits the file. The custom processor I made for Paperclip > > uses FFMPEG. My custom processor expects a style to be set so that it > >

[Rails] Re: Paperclip style not working with proc

2010-10-14 Thread Christian Fazzini
Anyone have a solution to this problem? On Oct 12, 12:36 pm, Christian Fazzini wrote: > My form submits the file. The custom processor I made for Paperclip > uses FFMPEG. My custom processor expects a style to be set so that it > can process the audio based on that value. So for example, in my fo

[Rails] Re: Paperclip style not working with proc

2010-10-11 Thread Christian Fazzini
My form submits the file. The custom processor I made for Paperclip uses FFMPEG. My custom processor expects a style to be set so that it can process the audio based on that value. So for example, in my form, I set stream_type to 30, my custom processor would process the audio file to 30 seconds.

Re: [Rails] Re: Paperclip style not working with proc

2010-10-11 Thread Walter Lee Davis
I built a system in Rails 2.3.8 that accepted PDF uploads and needed to extract their text content using the venerable (read ancient) pdftotext command-line utility. I had to jump through the following hoops to make it work, and this might have some bearing on your solution: #model has_

[Rails] Re: Paperclip style not working with proc

2010-10-11 Thread Christian Fazzini
Walter Lee, I am trying to pass a value (stream_type) that was in submitted in my form to :styles using proc. Radhames, even if I do all this in the model, without a processor, I am still not able to get the value of stream_type, that was passed when the form tried to submit. So Philip, this mean

Re: [Rails] Re: Paperclip style not working with proc

2010-10-11 Thread Philip Hallstrom
has_attached_file gets read when the class file is first read. It then sets up the various paperclip methods that do there stuff. When it does that, 'instance' is a new/blank record. What you have below will work (if memory serves me right) if you save the record, reload it, and then reproces

[Rails] Re: Paperclip style not working with proc

2010-10-10 Thread Christian Fazzini
anyone?? Been on this for days without a solution thinking that I may have to switch to another gem just to get this feature to work... On Oct 7, 3:16 pm, Christian Fazzini wrote: > I have a stream_type field on my form. When the form submits, > instance.stream_type is blank. To verify this,