On Wed, Oct 7, 2009 at 6:39 AM, Heinz Strunk
<[email protected]> wrote:
> I've got a similiar problem but need to remove two attributes I only
> need for validation.
> I have my model plus two attributes (current, required) and I want to
> validate these two attributes before saving. I cannot create a new
> instance because it says "unknown attribute current"

Sounds like you need to add attr_accessor entries.

attr_accessor :current, :required


-- 
Greg Donald
http://destiney.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to