From: Brian Candler Date: 2010-09-10T05:04:36+09:00 Subject: Re: File upload help Shef wrote: > Ok, I see, this was my goof. You see I was trying to do that because I > am a moron, I gave both the method and the column the same name, I > changed the name and it works like a charm, thank you so much for your > help! You do realise that ActiveRecord automatically creates a method with the same name as the column, at run time - so you don't need to create one at all? Even with an apparently empty definition like class Foo < ActiveRecord::Base end you can still do f = Foo.new f.bar = "hello" f.baz = "world" (assuming that your database has a table called 'foos' with columns 'bar' and 'baz') -- Posted via http://www.ruby-forum.com/.