Skip to content

Bhanu's Blog

it's not about being the best it's about being better than yesterday

Bhanu's Blog

it's not about being the best it's about being better than yesterday

Day: November 11, 2021

ruby

Different ways to set attributes in Active record

  • bhanunadar
  • Posted on November 11, 2021

Rails allow us to update attributes using different instance and class methods, understanding these methods allows us to avoid insane bugs. Let’s explore these methods attribute= Syntax: As you can see this is an instance method and the data is not written to the DB yet. we have to run x.save to save it. write_attribute…

Read More

Recent Posts

  • TIL: Enabling Proxy in Spring WebClient
  • Solving Cannot handshake client first record does not look like a TLS handshake in Hoverfly
  • TIL: Docker Namespaces
  • My Experience with LG Ultragear 32GS60QC (32 inch)
  • TIL: Value Classes

Copyright © All rights reserved. Proudly powered by WordPress | Theme: Blog Nano by ThemeMiles.