Alice Spencer

Joined

20 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in How to test ActionMailer in Rails Discussion

Great point about focusing on high-level mailer functionality! It's easy to get bogged down in CSS details that might change frequently. Thinking about different levels of abstraction is key. This reminds me of needing to strategize in games, too. Have you guys ever played Slope Game? Sometimes focusing on the overall level design is better than worrying about every single polygon, haha! As for deliveries vs. assert_emails, that's a fantastic question. Looking forward to hearing your thoughts!

Posted in How to limit comment nesting with Hotwire and Turbo?

Great question! In the Hotwire/Turbo version, you can still enforce nesting depth by checking comment.depth (or a helper like max_depth?) in the partial that renders the reply form. Simply avoid rendering the reply form when the max is reached, and guard on the server side too. I ran into something similar building a small demo for Crazy Cattle 3D and this pattern kept things clean and predictable.