RailsCasts Pro episodes are now free!

Learn more or hide this

David Ortiz Frau's Profile

GitHub User: davidortizfrau

Site: davidortizfrau.me

Comments by David Ortiz Frau

Avatar

Where you able to fix this problem? If so, can you let me know what the bug is?

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!