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