Note that there are some explanatory texts on larger screens.

plurals
  1. PORails render error with Missing partial test/test
    primarykey
    data
    text
    <p>This is the base structure html code.</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Layout&lt;/title&gt; &lt;link rel="stylesheet" href="style.css" /&gt; &lt;/head&gt; &lt;body&gt; &lt;!-- UI Object --&gt; &lt;div id="wrap"&gt; &lt;p&gt; #wrap &lt;/p&gt; &lt;!-- header --&gt; &lt;div id="header"&gt; &lt;p&gt; #header &lt;/p&gt; &lt;/div&gt; &lt;!-- //header --&gt; &lt;!-- container --&gt; &lt;div id="container"&gt; &lt;p&gt; #container &lt;/p&gt; &lt;!-- snb --&gt; &lt;div class="snb"&gt; Login &lt;input/&gt; &lt;input/&gt; &lt;button&gt; Login &lt;/button&gt; &lt;/div&gt; &lt;%=render "test/test"%&gt; &lt;!-- //snb --&gt; &lt;!-- content --&gt; &lt;!-- &lt;div id="content"&gt; &lt;p&gt; #content &lt;/p&gt; &lt;/div&gt; --&gt; &lt;!-- //content --&gt; &lt;/div&gt; &lt;!-- //container --&gt; &lt;!-- footer --&gt; &lt;div id="footer"&gt; &lt;p&gt; #footer &lt;/p&gt; &lt;/div&gt; &lt;!-- //footer --&gt; &lt;/div&gt; &lt;!-- //UI Object --&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>in here, the "content" part will be the dynamic part, that will be changed.</p> <p>So i used <code>&lt;%=render "test/test"%&gt;</code> to render code in,</p> <p>/views/test/test.html.erb</p> <p>but if i run this,</p> <p>it throws on error like this,</p> <pre><code>Missing partial test/test with {:locale=&gt;[:en], :formats=&gt;[:html], :handlers=&gt;[:erb, :builder, :coffee]}. Searched in: </code></pre> <p>Of course, i tried to put that params like this,</p> <pre><code>&lt;%= render :partial =&gt; 'test/test', :locale=&gt;[:en], :formats=&gt;[:html], :handlers=&gt;[:erb, :builder, :coffee] %&gt; </code></pre> <p>but still have the same error.</p> <p>Any good solution?</p>
    singulars
    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.
 

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