Olivier

Joined

2,460 Experience
24 Lessons Completed
0 Questions Solved

Activity

Would be great to tackle the signup implementation with classic username/password in React Native

Resize to fit only works with image_processing gem. Upon bundle install, restart your server and give it a try.
You will need to whitelist some routes (sign_up...) based onĀ 
env["REQUEST_PATH"]
with a regular expression and skip middleware for those paths. (similar to what Chris did with ensuring account_id is a number)

How do you end up testing this with Minitest?
All controllers actions fail because env["REQUEST_PATH"] is nil

NoMethodError: undefined method split' for nil:NilClass
lib/account_middleware.rb:8:in
call'
Variants are generated upon request (on the fly).
However, once it gets generated and saved to disk, then it is read from storage. So, the calculation only happens once.

Posted in Stimulus JS Twitter UI: Part 2 Discussion

+1

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2023 GoRails, LLC. All rights reserved.