title: Ruby on Rails - Can I modify the value of an attribute before it is called?
body: <p>Let's say I have this model named <em>Product</em> with a field named <em>brand</em>. Suppose the values of <em>brand</em> are stored in the format <em>this_is_a_brand</em>. Can I define a method in the model (or anywhere else) that allows me to modify the value of <em>brand</em> before it is called. For example, if I call <em>@product.brand</em>, I want to get <em>This is a Brand</em>, instead of <em>this_is_a_brand</em>.</p>