Note that there are some explanatory texts on larger screens.

plurals
  1. POBuilding side navigation menu from XML file in Rails 3
    primarykey
    data
    text
    <p>i am newbie to RoR previously working on .NET platform. We have requirement to build a home page from xml file. The xml file cantains the 3 category and under each category we have 4 menu items.</p> <p>The XML file looks like:</p> <pre><code> &lt;menu id="mnusermgmt" caption="User"&gt; &lt;item id="server" level="1;1;1;1;1"&gt; &lt;caption&gt;Users&lt;/caption&gt; &lt;url&gt;user_url&lt;/url&gt; &lt;/item&gt; &lt;item id="mngrp" level="1;1;1;1;1"&gt; &lt;caption&gt;Group&lt;/caption&gt; &lt;url&gt;group_url&lt;/url&gt; &lt;/item&gt; &lt;item id="mnposition" level="1;1;1;1;1"&gt; &lt;caption&gt;Position&lt;/caption&gt; &lt;url&gt;position_url&lt;/url&gt; &lt;/item&gt; &lt;item id="mndept" level="1;1;1;1;1"&gt; &lt;caption&gt;Department&lt;/caption&gt; &lt;url&gt;department_url&lt;/url&gt; &lt;/item&gt; &lt;/menu&gt; &lt;menu id="msgmgmt" caption="Message"&gt; &lt;item id="mnmsg" level="1;1;1;1;1"&gt; &lt;caption&gt;Messages&lt;/caption&gt; &lt;url&gt;messages_url&lt;/url&gt; &lt;/item&gt; &lt;item id="mnstatistics" level="1;1;1;1;1"&gt; &lt;caption&gt;Statistics&lt;/caption&gt; &lt;url&gt;Statistics_url&lt;/url&gt; &lt;/item&gt; &lt;/menu&gt; </code></pre> <p>I have used the application.html.erb file. here is the code:</p> <pre><code>"&lt;table&gt; &lt;tr&gt; &lt;td class="top" width="1340px" colspan="2"&gt; MESSAGING SYSTEM &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="name"&gt; &lt;div id="dvNav"&gt; XML based Menu needs tobe build &lt;/div&gt; &lt;/td&gt; &lt;td class="name"&gt; &lt;div id="dvContent"&gt; &lt;%= yield %&gt; &lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;" </code></pre> <p>How can i use XML file to build navigation menu and link to application.html.erb?</p> <p>Regards, Sudhir C.N.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload