News for hackers. Stuff that matters.
Re:How to Dynamically Create Instance Variables in Ruby by bradgessler on Friday July 28, 2023 @02:50AM (#36903745)
This technique is useful in Rails if you need to assign instance variables that have the name of a model.

Here’s an example: https://github.com/rubymonolith/demo/blob/main/app/controlle...

There are no comments on this comment yet.