Cristian Georgescu

Joined

6,100 Experience
53 Lessons Completed
1 Question Solved

Activity

Posted in How to use Hotwire in Rails Discussion

solved it, I had it misconfigured

Posted in How to use Hotwire in Rails Discussion

Tried to implement it with a user model & devise. Devise is working ok but on error on creating an user the form is rendered ok, second time when I’m trying to resubmit with an error the user is not passed and on inspection the turbo frame is empty? What might be the issue?

When running migration:

ArgumentError: You tried to define an enum named "industry" on the model "Company", but this will generate a instance method "horeca?", which is already defined by another enum.  


Posted in How do I configure paperclip with capistrano?

It works.

After checking the logs found out that a call to imagemagik was the culprit.
Works don't work by default.
There where 2 issues: rails12_factor gem was installed and it's no longer needed on Rails 5
Also the following ENV vars need to be set in order to get the logs inside the current/logs

RAILS_SERVE_STATIC_FILES and RAILS_LOG_TO_STDOUT ENV need to be true.

Posted in How do I configure paperclip with capistrano?

Still not working. I don't want to salvage old images.
I want to upload new ones once I create a registration.

Is there a way to check the logs to see what is happening ?

Posted in How do I configure paperclip with capistrano?

Thank you for your reply Olvier.
I added the line to deploy.rb and also I checked the server.
public/system is present in current folder, in shared and also on releases but the issue persists.
Do I need to create the also the folder for :class and :partition inside the public/system?
Can it be a folder permissions issue ?

Thank you,
Cristian

Posted in How do I configure paperclip with capistrano?

Hi,

I deployed using the "Deploy Ruby on Rails" guide.
However I paperclip attachments no longer work in production. Got the below error:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Any suggestions ?

Thanks.
PS:
Also I don't know where exactly I can check the logs. current/log/production is empty