为什么我得单身不能被甩?

时间:2016-08-15 11:09:23

标签: ruby-on-rails ruby

当我尝试将变量值添加到会话中时,我得到singleton cant be dumped错误。

这是varibale中的值

[
    [0] {
                                        :id => "574ecb43a7a5bb44c000443b",
                                       :_id => "574ecb43a7a5bb44c000443b",
                                    :active => true,
                              :capabilities => {
            :network_connections => [
                [0] {
                    :type => "ethernet-wan",
                    :name => "wan"
                },
                [1] {
                    :type => "ethernet-lan",
                    :name => "lan"
                },
                [2] {
                    :type => "wifi",
                    :name => "wlan"
                },
                [3] {
                    :type => "cellular",
                    :name => "wwan"
                }
            ]
        },
                             :commander_ids => [],
                                :created_at => "2016-05-11T15:46:12+00:00",
                                :deleted_at => nil,
                       :firmware_upgradable => true,
                              :ingestor_ids => [],
                :last_known_translator_port => nil,
                          :long_description => "this is a liong desc",
                              :manufacturer => "test_sushant",
                                     :model => "sushant_test",
                                      :name => "zxc",
        :parent_gateway_data_source_type_id => nil,
                                  :rule_ids => [],
                                  :software => "qwe",
                                :translator => "edge",
                                      :type => "asd",
                                :updated_at => "2016-05-11T15:46:12+00:00",
                                   :user_id => "572adee5a7a5bb320b000852"
    },

变量是一个对象数组。我不知道为什么这会导致错误。

0 个答案:

没有答案