In the model, use:
attr_accessor :attribute_name
--
-- Tom Mornini
On Jun 11, 2006, at 9:03 AM, Matias wrote:
> Hi,
>
> I''ve a model that is stored to the db, but just one of its
atribbutes
> doesn''t have a corresponding column on the table (it is used just
> for a
> calculation and still requires validation).
>
> I''ve been succefull by doing what is explained in
> http://rails.techno-weenie.net/tip/2005/11/19/
> validate_your_forms_with_a_table_less_model
>
> But I get an error of a non-existent column for the attribute I
> don''t want
> to store.
>
> Any idea?
>
> Thanks everybody
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails