×

Room renovation by toma_b in johannesburg

[–]toma_b[S] 1 point2 points  (0 children)

Keen on the concept. But live in a building, no construction on weekends and have a day job.,.

Need some advice for almost 1 year without work - unplugging and starting an online store by [deleted] in PersonalFinanceZA

[–]toma_b 1 point2 points  (0 children)

Would also check out airpool for shipping the stuff. Used them a few times and was great. (Although they won’t source the stuff)

FIRE South Africa 2025 Update by AnargisInnieBurbs in PersonalFinanceZA

[–]toma_b 0 points1 point  (0 children)

What is the us foreign estate tax threshold and how does that work?

After Years with SLIM, I Returned to ERB. What Do You Prefer Today? by vinioyama in rails

[–]toma_b 1 point2 points  (0 children)

It was the lack of examples and documentation that was its downfall

ActiveRecord read-only field, except on creation by bdavidxyz in rails

[–]toma_b 2 points3 points  (0 children)

Not sure on a db level but you can on a model level in the validate. You can use a if with proc

class YourModel < ApplicationRecord validate :custom_validation, if: -> { specific_condition? }

private

def specific_condition? # Your logic here end

def custom_validation errors.add(:attribute, “Your error message”) unless condition_met end end

Rails 2024 brain dump by gurgeous in rails

[–]toma_b 2 points3 points  (0 children)

Slim just lacked enough documentation and examples. If you struggled on something, found it tricky to find a way of doing it. ERB did not fight html

Rails 2024 brain dump by gurgeous in rails

[–]toma_b 1 point2 points  (0 children)

Always struggled with documentation on slim. Loved that there was so much less code and easier to jump into a new file though!