2011-01-13 2 views
0
(rdb:569) @errors 
#<ActiveRecord::Errors:0x104596758 @errors={}, @base=#<Deal id: nil, organization_id: nil, deal: "Free", value: nil, what: "this deal", description: "friday on sept. this deal", image_file_name: nil, image_content_type: nil, image_file_size: nil, image_updated_at: nil, created_at: nil, updated_at: nil, deal_image_file_name: nil, deal_image_content_type: nil, deal_image_file_size: nil, deal_image_uploaded_at: nil>> 

예를 들어, 을 @errors으로 어떻게 부르겠습니까?이 해시에서 params에 액세스하려면 어떻게해야합니까?

답변

2

@ errors.instance_variable_get ("@ base") 설명

관련 문제