774 shaares
10 private links
10 private links
7 results
tagged
rails
Follow up with the previous link, if I want to run system test cases in Rails using:
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :selenium, using: :headless_firefox, screen_size: [1400, 1400]
end
Then I need to install Firefox, as well as fonts, so that the screenshots are rendered properly.
apk add xvfb firefox ttf-dejavu
(note: fonts are required for Firefox to render pages)
A great article for using docker-compose as a dev environment for rails
Interesting articles on avoiding 3 common mistakes when working with ActiveRecord.
The best one:
<% -%>
Avoids line break after expression
Simpler authentication than Devise
TL;DR lengthy paper about RoR applications and possible attacks. Good read for any dev.
TL;DR how to properly use caching with Rails