<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Recent Posts in 'Error using store layout for admin' | Pragmatic Forums</title>
    <link>http://forums.pragprog.com/forums/66/topics/710</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <description></description>
    <item>
      <title>Error using store layout for admin posted by Sam Ruby @ Mon, 21 Jul 2008 12:21:43 -0000</title>
      <description>&lt;p&gt;The next printing of the book will have little arrows next to all of the lines that you need to insert.  This printing neglected to highlight the insertion of &amp;lt;% if @cart &lt;span&gt;&amp;gt; and &amp;lt;&lt;/span&gt; end %&amp;gt; around that line.&lt;/p&gt;


	&lt;p&gt;The full version of that file should look like this:&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://media.pragprog.com/titles/rails3/code/depot_q/app/views/layouts/store.html.erb"&gt;http://media.pragprog.com/titles/rails3/code/depot_q/app/views/layouts/store.html.erb&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 21 Jul 2008 12:21:43 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:710:3725</guid>
      <author>Sam Ruby</author>
      <link>http://forums.pragprog.com/forums/66/topics/710</link>
    </item>
    <item>
      <title>Error using store layout for admin posted by Kyle Murphy @ Sun, 20 Jul 2008 15:21:44 -0000</title>
      <description>&lt;p&gt;I&#8217;m on page 174, right where we add the store layout to the application controller. Then, when I navigate to &lt;a href="http://localhost:3000/admin"&gt;http://localhost:3000/admin&lt;/a&gt;, I get this Exception:&lt;/p&gt;


	&lt;p&gt;ActionView::ActionViewError in Admin#login&lt;/p&gt;


	&lt;p&gt;Showing layouts/store.html.erb where line #25 raised:&lt;/p&gt;


	&lt;p&gt;Couldn&#8217;t find template file for admin/_cart in [&#8220;C:/Documents and Settings/bah/My Documents/NetBeansProjects/Depot/app/views&#8221;]&lt;/p&gt;


	&lt;p&gt;Extracted source (around line #25):&lt;/p&gt;


	&lt;p&gt;22:&lt;/p&gt;


	&lt;p&gt;23: &amp;lt;!- &lt;span class="caps"&gt;START&lt;/span&gt;_HIGHLIGHT -&amp;gt;&lt;br /&gt;24:&lt;/p&gt;


	&lt;p&gt;25: &amp;lt;%= render(:partial =&amp;gt; &#8220;cart&#8221;, :object =&amp;gt; @cart) %&amp;gt;&lt;br /&gt;26:&lt;/p&gt;


	&lt;p&gt;27:&lt;br /&gt;28: &amp;lt;!- &lt;span class="caps"&gt;END&lt;/span&gt;_HIGHLIGHT -&amp;gt;&lt;/p&gt;


	&lt;p&gt;This is obviously due to not having _cart.html.erb in the admin view folder, but I would think the book would account for that, so I must be doing something wrong. Help?&lt;/p&gt;</description>
      <pubDate>Sun, 20 Jul 2008 15:21:44 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:710:3715</guid>
      <author>Kyle Murphy</author>
      <link>http://forums.pragprog.com/forums/66/topics/710</link>
    </item>
  </channel>
</rss>
