开发者

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, d开发者_如何学Goeal_image_content_type: nil, deal_image_file_size: nil, deal_image_uploaded_at: nil>>

For example, how would I call the description in @errors ?


@errors.instance_variable_get("@base").description

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜