[Rails] Triggering Javascript from a Ruby form

2010-09-03 Thread A. Leek
Hello again, I've managed to hack together an uploader, but I need a progress bar to go with it. I ended up using FTP to upload, and got a way to find the progress while it's uploading. I split that off into another function in the controller, which is all well and good. The problem is that I ne

[Rails] Re: Paperclip Trouble - Not Writing to the Database

2010-08-10 Thread A. Leek
Parker Selbert wrote: > There is a duality to Paperclip in that it is meant to process anything, > but the default processor (Thumbnail) is for images. I'm guessing the > versatility of it is why it doesn't do a hard check for ImageMagick > before it tries to process anything. > > As far as the

[Rails] Re: Paperclip Trouble - Not Writing to the Database

2010-08-08 Thread A. Leek
Bb Serviss wrote: > I noticed in your form that you didnt specify any of the support > fields that paperclip uses -avatar_file_name for example - if these > aren't in the params hash they won't be saved in the db. In a recent > project I added all the fields to the form, but you could add them as

[Rails] Re: Paperclip Trouble - Not Writing to the Database

2010-08-07 Thread A. Leek
Thank you, I changed it. But it's still not fixing the SQL query. By the way, is there a good way to step through a Rails application? I don't know if it would help here, but I like being able to see what's going on at every level. I could at least see what's being used to make the query. -- P

[Rails] Paperclip Trouble - Not Writing to the Database

2010-08-06 Thread A. Leek
Hello all, I'm a Rails newbie trying to get a basic implementation of Paperclip up but it's giving me problems. I'm developing on Windows XP (I know...) with WEBrick and MySQL. In my model I have: class User < ActiveRecord::Base has_attached_file :avatar,:styles => { :medium => "300x300>", :th