Displaying 1 result from an estimated 1 matches for "dc343bd3".
Did you mean:
d83434d3
2006 Feb 16
10
Confused over Model attrbutes and @ prefix
I''m confused about how attributes work in models. For example:
class Page < ActiveRecord::Base
attr_accessor :body
def foo
id # works
@id # won''t work IIRC
body # won''t work
@body #works
end
end
Why doesn''t everything work the same?
Joe
--
Posted via http://www.ruby-forum.com/.