Forum: Ruby on Rails attr_accessor help understanding

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
James W. (Guest)
on 2006-02-06 00:15
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
anne g (Guest)
on 2006-02-06 00:20
(Received via mailing list)
Could you give an example that gives you trouble, or a page number?
James W. (Guest)
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.
anne g (Guest)
on 2006-02-06 00:44
(Received via mailing list)
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
This topic is locked and can not be replied to.