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
on 2006-02-06 00:15
on 2006-02-06 00:20
Could you give an example that gives you trouble, or a page number?
on 2006-02-06 00:28
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.
on 2006-02-06 00:44
http://railsmanual.org/class/ActiveRecord::Base/at... attr_accessible is not something I am familiar with http://www.phylomortis.com/resource/script/syntax/... this seems to be regular ruby stuff, being able to access an object variable from outside the object definition