繁体   English   中英

如何访问此哈希中的参数?

[英]How do I access params in this hash?

(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>>

例如,我怎么称呼@errorsdescription

@ errors.instance_variable_get(“ @ base”)。description

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM