Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

davidortizfrau's Profile

GitHub User: davidortizfrau

Comments by

Avatar

Prawn is working fine in development but in production, my app is not even opening. When I check production logs I get a looping message

production.log
...
19x.xxx.xxx.xxx: Connecting to database specified by database.yml
19x.xxx.xxx.xxx: Connecting to database specified by database.yml
19x.xxx.xxx.xxx: Connecting to database specified by database.yml
19x.xxx.xxx.xxx: Connecting to database specified by database.yml
...
Avatar

Hi Erik, the inverse_of didn't work. The fileupload method is being used on the form of a parent resource. When I choose the files (multiple nested img resource) and upload it, a parent resource is being created as many times as files uploded with only one pic in it, instead of one parent with many pics.

Avatar

Hi, How would you implement this with a nested resource. For example I have a form for a item with nested pictures. How can I implement the fileupload() method to the items form?

Thanks!