<div dir="ltr"><div style="display:inline-block"></div><div><div><div>Hi,<br><br></div>I would like to display some values on
the show device page, I managed to display them on the index page, but i
think the problem should be in the parameter.json. <br><br></div><div>Parameter.json:<br><br> "InternetGatewayDevice.WANDevice./^\\d+$/.WANConnectionDevice./^\\d+$/.WANIPConnection./^\\d+$/.MACAddress" : {"alias" : "summary.mac", "type" : "mac"},<br><br> "InternetGatewayDevice.WANDevice./^\\d+$/.WANConnectionDevice./^\\d+$/.WANPPPConnection./^\\d+$/.ExternalIPAddress" : {"alias" : "summary.ip"},<br><br> "InternetGatewayDevice.LANDevice./^\\d+$/.WLANConfiguration./^\\d+$/.SSID" : {"alias" : "summary.wlanSsid"},<br> <br> "InternetGatewayDevice.LANDevice./^\\d+$/.WLANConfiguration./^\\d+$/.PreSharedKey./^\\d+$/.KeyPassphrase" : {"alias" : "summary.wlanPassphrase"},<br> <br> "InternetGatewayDevice.WANDevice./^\\d+$/.WANDSLInterfaceConfig.DownstreamAttenuation" : {"alias" : "summary.DownstreamAttenuation"},<br> <br> "InternetGatewayDevice.WANDevice./^\\d+$/.WANDSLInterfaceConfig.UpstreamAttenuation" : {"alias" : "summary.UpstreamAttenuation"},<br> <br> "InternetGatewayDevice.WANDevice./^\\d+$/.WANDSLInterfaceConfig.DownstreamNoiseMargin" : {"alias" : "summary.DownstreamNoiseMargin"},<br> <br>"InternetGatewayDevice.WANDevice./^\\d+$/.WANDSLInterfaceConfig.UpstreamNoiseMargin" : {"alias" : "summary.UpstreamNoiseMargin"},<br> <br> "InternetGatewayDevice.WANDevice./^\\d+$/.WANDSLInterfaceConfig.DownstreamCurrRate" : {"alias" : "summary.DownstreamCurrRate"},<br> "InternetGatewayDevice.WANDevice./^\\d+$/.WANDSLInterfaceConfig.UpstreamCurrRate" : {"alias" : "summary.UpstreamCurrRate"},<br></div><div><br>I think it's the show.html.erb in the div summary who cause my trouble:<br><br><div class="summary"><br><% for k,v in Rails.configuration.summary_parameters %><br> <% if v.is_a?(String) %><br> <p><br> <strong><%= k %>:</strong><br> <%= param_value(v, @device) %><br> <% if (p = get_param(v, @device)) != nil and p['_writable'] and can_edit_parameters %><br> —<br> <% options = Rails.configuration.parameters_edit[p['_path'].gsub(/\.\d+\./, '..')] %><br> <a href="#" onclick='editParam("<%= v %>", "<%= p['_type'] %>", <%= p['_value'].to_json.html_safe %>, <%= options.to_json.html_safe %>);return false;'>Edit</a><br> <% end %><br> </p><br> <% else %><br> <h2><%= k %></h2><br> <%= render partial: 'object_table', locals: {params: v} %><br> <% end %><br><% end %><br></div><br><br></div>If you have an advice, i'll take it.<br><br></div><div>Thanks for your time<br></div><div>Regards,<br><br></div>Fabien B</div>