How can I use virtual attributes (getter, setter) in rails 4, as removed by 'attr_accessible'.
I have a problem here
def tags_list @tags = self.tags.collect(&:name).join(', ') end
I can use the method above, but I can not set the setter below when trying to update / create.
def tags_list=(tags) @tags = tags end
ruby-on-rails ruby-on-rails-4 attr-accessor
Ashwin yaprala
source share