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.
B0be4bfef5a22697a0f44f4fe295aaef?d=identicon&s=25 James Whittaker (aftershock)
on 2006-02-05 23: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
E29eaefee1709918198c8a4f55c42667?d=identicon&s=25 anne g (Guest)
on 2006-02-05 23:20
(Received via mailing list)
Could you give an example that gives you trouble, or a page number?
B0be4bfef5a22697a0f44f4fe295aaef?d=identicon&s=25 James Whittaker (aftershock)
on 2006-02-05 23: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.
E29eaefee1709918198c8a4f55c42667?d=identicon&s=25 anne g (Guest)
on 2006-02-05 23: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.