<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Recent Posts in 'Applying what I'm learning...' | Pragmatic Forums</title>
    <link>http://forums.pragprog.com/forums/22/topics/266</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <description></description>
    <item>
      <title>Applying what I'm learning... posted by roupen nahabedian @ Fri, 15 Feb 2008 01:19:06 -0000</title>
      <description>&lt;p&gt;I&amp;#8217;ve been all over the book &amp;#8211; Agile Web Dev&amp;#8212;I&amp;#8217;m implementing the Depot project and also building a parallel fun project to apply what I&amp;#8217;m learning in real time.&lt;/p&gt;


	&lt;p&gt;I have two models: book and wanted_offer book has_many wanted_offers and wanted_offer belongs_to book.&lt;/p&gt;


	&lt;p&gt;I have a myfoo controller which handles these models.&lt;/p&gt;


	&lt;p&gt;What I am trying to do is use the &amp;#8220;create_&amp;#8221; method describe on p 328 to create a book based on user input.&lt;/p&gt;


	&lt;p&gt;My call looks like this @wanted_offer.create_book(params[:wanted_offer])&lt;/p&gt;


	&lt;p&gt;From all indications, everything is going well (no runtime errors, logs look normal) &lt;span class="caps"&gt;BUT&lt;/span&gt; book is not being written to the database :-(&lt;/p&gt;


	&lt;p&gt;What am I missing?&lt;/p&gt;</description>
      <pubDate>Fri, 15 Feb 2008 01:19:06 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:22:266:2295</guid>
      <author>roupen nahabedian</author>
      <link>http://forums.pragprog.com/forums/22/topics/266</link>
    </item>
  </channel>
</rss>
