What is attr_accessor in Rails?

7

attr_accessor is used to define an attribute for object of Model which is not mapped with any column in database. This answers question - What is attr_accessor in Rails.

Read this post on rubyinrails.com


Akshay

blogs from Pune