Top "Virtual-attribute" questions

What would a default getter and setter look like in rails?

I know that I can write attr_accessor :tag_list to make a virtual attribute tag_list for an object …

ruby-on-rails ruby ruby-on-rails-3 virtual-attribute attr-accessor
Virtual attributes in rails 4

How can I use virtual attributes(getter, setter) in rails 4, as 'attr_accessible' removed. I am getting issue, here def …

ruby-on-rails ruby-on-rails-4 attr-accessor virtual-attribute
Virtual Attribute in Rails 4

I have a model of product and I need to write in the _form view , the number of the product …

ruby-on-rails ruby ruby-on-rails-4 virtual-attribute
Rails 3: creating a validation with :if statement

Hi I'm trying to setup a validation that is only called in a specific form view, to do this I'm …

ruby-on-rails ruby-on-rails-3 validation virtual-attribute
In Yii framework how can I Combine columns and show as display string in dropdownlist

I have a dropDownList in my view, it is populating from clients table, the table contains columns like first_name, …

php yii html.dropdownlistfor virtual-attribute yii-cmodel
Setting & getting virtual attributes in Rails model

I'm looking for a rails-y way to approach the following: Two datetime attributes in an Event model: start_at: datetime …

ruby-on-rails ruby-on-rails-3 accessor virtual-attribute