- Wrap image tag with begin-rescue to catch errors - Display fallback message when image fails to load - Log error messages to Rails logger for debugging This change improves the robustness of the image loading feature in the arts view by handling potential exceptions when loading images. Users will see a placeholder message if the image fails to load, enhancing user experience and ensuring that the application does not crash due to unhandled image load errors. |
||
---|---|---|
.github | ||
.kamal | ||
app | ||
bin | ||
config | ||
db | ||
lib | ||
log | ||
public | ||
script | ||
storage | ||
test | ||
tmp | ||
vendor | ||
.dockerignore | ||
.gitattributes | ||
.gitignore | ||
.node-version | ||
.rubocop.yml | ||
.ruby-version | ||
compose.yaml | ||
config.ru | ||
Dockerfile | ||
Gemfile | ||
Gemfile.lock | ||
package.json | ||
Procfile.dev | ||
Rakefile | ||
README.md | ||
tailwind.config.js | ||
yarn.lock |
README
This README would normally document whatever steps are necessary to get the application up and running.
Things you may want to cover:
-
Ruby version
-
System dependencies
-
Configuration
-
Database creation
-
Database initialization
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
-
...