i’m having trouble understanding the attr_accessor and attr_accessible
syntax in models. I’m workink through the Agile book and even a look at
the ruby doc does not really help to clarify.
Thanks aftershock
i’m having trouble understanding the attr_accessor and attr_accessible
syntax in models. I’m workink through the Agile book and even a look at
the ruby doc does not really help to clarify.
Thanks aftershock
Could you give an example that gives you trouble, or a page number?
anne g wrote:
Could you give an example that gives you trouble, or a page number?
It was just a general question but I was working on page 128 of the
Agile book.
http://railsmanual.org/class/ActiveRecord::Base/attr_accessible
attr_accessible is not something I am familiar with
http://www.phylomortis.com/resource/script/syntax/syn-aa.html
this seems to be regular ruby stuff, being able to access an object
variable from outside the object definition
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs