Hey there,
I'm currently learning RoR and I've got the following problem:
My Model, "DataFile", has a bunch of fields which I'd like to set from outside the Model, e.g.
file = DataFile.new file.owner = 123
Now, as far as I know, I'd have to place an "attr_accessor :field" in my model, for every field that I'd like to modify from outside. However, the above code runs fine without having any attr_accessors defined, setting the owner field to 123. Why is that?
I'd expected to get a "method not defined" error or something like that.
Thanks in advance,
x3ro