Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fog Views #4102

Open
cmurphgarv opened this issue Nov 30, 2023 · 3 comments
Open

Fog Views #4102

cmurphgarv opened this issue Nov 30, 2023 · 3 comments

Comments

@cmurphgarv
Copy link

cmurphgarv commented Nov 30, 2023

We're updating our Ruby app and had an old version of fog as a gem, but only needed fog-aws going forward to avoid unnecessary dependencies. On some click-through testing of our app, we discovered a bug where attachments delete successfully but the view doesn't reload to reflect the change and realized this was provided by fog before the update. Can someone tell us what part of the gem provides a view for the destroy action? We tried to search the documentation and github for this info and couldn't figure it out. Thank you.

@geemus
Copy link
Member

geemus commented Nov 30, 2023

Could you share some of the code in question? I think it will be much easier to answer with explicit examples of the method calls you are missing. Thanks.

@cmurphgarv
Copy link
Author

Could you share some of the code in question? I think it will be much easier to answer with explicit examples of the method calls you are missing. Thanks.

Unfortunately we can't share our code publicly, but this is the error:


Template is missing

Missing template attachments/destroy, application/destroy with {:locale=>[:"en-US", :en], :formats=>[:js, :html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :coffee, :axlsx, :haml, :jbuilder]}. Searched in:
  * "/app/app/views"
  * "/usr/local/bundle/gems/resque-web-0.0.12/app/views"
  * "/usr/local/bundle/gems/devise_invitable-2.0.8/app/views"
  * "/usr/local/bundle/gems/devise-4.9.2/app/views"
  * "/usr/local/bundle/gems/twitter-bootstrap-rails-5.0.0/app/views"
  * "/usr/local/bundle/gems/kaminari-core-1.2.2/app/views"

We switched from using the fog base gem to fog-aws and the fog base gem seems to have provided templates for the delete action of attached files. When reverting the change, the template renders.

@geemus
Copy link
Member

geemus commented Dec 5, 2023

@cmurphgarv I don't expect either fog or fog-aws to have any templates at all. So I wonder if the message displayed here is actually misdirecting us when the actual problem is something else. If you could share a sanitized piece of code that duplicates an error that isn't from your code that would be fine too. Really just a snippet of how things are being called as that could give me a little more to work with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants