<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Recent Posts in 'Suggestions for Recipes' | Pragmatic Forums</title>
    <link>http://forums.pragprog.com/forums/43/topics/173</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <description></description>
    <item>
      <title>Suggestions for Recipes posted by Bobby Santiago @ Thu, 24 Apr 2008 07:34:45 -0000</title>
      <description>&lt;p&gt;One recipe I would appreciate: automated photo uploads to S3 using attachment_fu and BackgrounDRb, with the background process updating the UI with progress re thumbnail generation/saving.&lt;/p&gt;</description>
      <pubDate>Thu, 24 Apr 2008 07:34:45 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:43:173:2626</guid>
      <author>Bobby Santiago</author>
      <link>http://forums.pragprog.com/forums/43/topics/173</link>
    </item>
    <item>
      <title>Suggestions for Recipes posted by David Wilbur @ Wed, 23 Jan 2008 18:09:49 -0000</title>
      <description>&lt;p&gt;Mike, if you are going to do the csv, might i suggest the following to be clear about what i am suggesting.&lt;/p&gt;


	&lt;p&gt;there are many examples of how to store objects uploaded into the database, most of them are about images.  what i think would be useful is to have an example of how to take apart the csv and put that data into the appropriate database fields related to say the album for example.  say you had an album csv like this:&lt;/p&gt;


	&lt;p&gt;album_id,album_name,album_release_date,etc&amp;#8230;&lt;/p&gt;


	&lt;p&gt;that it would loop through the csv, and do a find based on maybe album_id and if it did find it that it did an update, otherwise i would do an insert.&lt;/p&gt;


	&lt;p&gt;that would be truly useful to people that are using rails in a corporate environment where they might have tons of data being generated by other systems and wanted members of the corporation to say aggregate that information in a rails app.&lt;/p&gt;


	&lt;p&gt;thanks for listening,&lt;br /&gt;dave&lt;/p&gt;</description>
      <pubDate>Wed, 23 Jan 2008 18:09:49 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:43:173:2213</guid>
      <author>David Wilbur</author>
      <link>http://forums.pragprog.com/forums/43/topics/173</link>
    </item>
    <item>
      <title>Suggestions for Recipes posted by Mike Clark @ Tue, 22 Jan 2008 20:46:05 -0000</title>
      <description>&lt;p&gt;David:  Thanks for your thoughts.  I get a ton of email related to my attachment_fu blog, so I thought expanding it a bit in the book to answer common questions might be well received.  I&amp;#8217;d like to incorporate some additional information folks have suggested in this forum, as well.  Rather than convert it into a generic file upload recipe, I&amp;#8217;m thinking a separate recipe on, say, uploading a &lt;span class="caps"&gt;CSV&lt;/span&gt; file might be warranted.&lt;/p&gt;


	&lt;p&gt;Thanks everyone!  Please keep the suggestions coming.&lt;/p&gt;</description>
      <pubDate>Tue, 22 Jan 2008 20:46:05 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:43:173:2208</guid>
      <author>Mike Clark</author>
      <link>http://forums.pragprog.com/forums/43/topics/173</link>
    </item>
    <item>
      <title>Suggestions for Recipes posted by Mike Clark @ Tue, 22 Jan 2008 20:41:23 -0000</title>
      <description>&lt;p&gt;Eddie: Rails 2 no longer has dynamic scaffolding, and Recipe #1 has an example of the new static scaffolding.  Thanks for the other suggestions!&lt;/p&gt;</description>
      <pubDate>Tue, 22 Jan 2008 20:41:23 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:43:173:2207</guid>
      <author>Mike Clark</author>
      <link>http://forums.pragprog.com/forums/43/topics/173</link>
    </item>
    <item>
      <title>Suggestions for Recipes posted by David Wilbur @ Tue, 22 Jan 2008 19:39:42 -0000</title>
      <description>&lt;p&gt;for me the upload chapter would be more helpful, and not yet another example of how to upload images in rails, (of which the other book from pragmatic &amp;#8220;rails recipes&amp;#8221; covers as do many other places on the web) if it were to talk more about general file uploading and post-processing.&lt;/p&gt;


	&lt;p&gt;even just doing this google search &amp;#8220;upload image rails example&amp;#8221;&lt;/p&gt;


	&lt;p&gt;points you at this and many other examples,&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://clarkware.com/cgi/blosxom/2007/02/24"&gt;http://clarkware.com/cgi/blosxom/2007/02/24&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;which seems to be the source of this recipe.&lt;/p&gt;


	&lt;p&gt;an example of other common forms of post processing might be, taking a tab or csv file with additional data about the &amp;#8220;album&amp;#8221; and saving that data to the database.  another might be taking a &amp;#8221;.doc&amp;#8221; file and converting it to a format that could be displayed from a rich text field in a database, like say people were asked to upload reviews of this &amp;#8220;album&amp;#8221;.&lt;/p&gt;


	&lt;p&gt;as was said above in the thread, the current state of the upload chapter is to me a case of more information, not more advanced examples.&lt;/p&gt;</description>
      <pubDate>Tue, 22 Jan 2008 19:39:42 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:43:173:2206</guid>
      <author>David Wilbur</author>
      <link>http://forums.pragprog.com/forums/43/topics/173</link>
    </item>
    <item>
      <title>Suggestions for Recipes posted by eddie may @ Thu, 17 Jan 2008 10:04:13 -0000</title>
      <description>&lt;p&gt;Last one, I promise!&lt;/p&gt;


	&lt;p&gt;A clear explanation and example of the use of dynamic vs static scaffolding.&lt;/p&gt;


	&lt;p&gt;Thanks&lt;/p&gt;</description>
      <pubDate>Thu, 17 Jan 2008 10:04:13 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:43:173:2181</guid>
      <author>eddie may</author>
      <link>http://forums.pragprog.com/forums/43/topics/173</link>
    </item>
    <item>
      <title>Suggestions for Recipes posted by eddie may @ Thu, 17 Jan 2008 09:59:21 -0000</title>
      <description>&lt;p&gt;Ok, this may be too ambitious for a recipe or even completely off topic, but here goes anyway!&lt;/p&gt;


	&lt;p&gt;Imagine a situation where you need to create an application for selling a multiplicity of different products &amp;#8211; cars, motorbikes, paintings, antiques, etc, etc. Each product has different attributes &amp;#8211; cars have a model and manufacturer, paintings have an artist &amp;#38; title. Similar (manufacturer = artist, model = title) but not the same!&lt;/p&gt;


	&lt;p&gt;One approach might be to have a &amp;#8216;products&amp;#8217; table with common fields such as id, price &amp;#38; then generic such as field3, field4, field5, etc, etc. Then one could subclass the &amp;#8216;Product&amp;#8217; class with a Picture class that would define what field3, field4 for this class are called (field3=Artist, field4 = Title, etc).&lt;/p&gt;


	&lt;p&gt;How would/could such a &amp;#8216;dynamic&amp;#8217; approach work with rails? Most of the examples I&amp;#8217;ve seen re: rails are relatively straightforward mappings between a &amp;#8216;products&amp;#8217; table and a &amp;#8216;Product&amp;#8217; class.&lt;/p&gt;


	&lt;p&gt;Thanks&lt;/p&gt;</description>
      <pubDate>Thu, 17 Jan 2008 09:59:21 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:43:173:2180</guid>
      <author>eddie may</author>
      <link>http://forums.pragprog.com/forums/43/topics/173</link>
    </item>
    <item>
      <title>Suggestions for Recipes posted by eddie may @ Wed, 16 Jan 2008 16:39:11 -0000</title>
      <description>&lt;p&gt;One more thought!&lt;br /&gt;While it&amp;#8217;s good to see recipes about rails logging, I&amp;#8217;ve not seen anything about dealing with web logs. Imagine an extension to your recipe on user subdomains, that logged//reported on page views and referrers (to &amp;#38; from) so that users could see how popular their subdomain was? Perhaps you could deal with the best strategies to employ &amp;#8211; logging hits in the database or chomping thro&amp;#8217; any existing web server stats.&lt;/p&gt;


	&lt;p&gt;Thanks again.&lt;/p&gt;</description>
      <pubDate>Wed, 16 Jan 2008 16:39:11 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:43:173:2176</guid>
      <author>eddie may</author>
      <link>http://forums.pragprog.com/forums/43/topics/173</link>
    </item>
    <item>
      <title>Suggestions for Recipes posted by eddie may @ Wed, 16 Jan 2008 16:27:42 -0000</title>
      <description>&lt;p&gt;I second (or third, fourth, ...) the admin UI recipe suggestion. I recently moved some controllers + views into an admin directory &amp;#38; had problems getting it to work until I added the admin &amp;#8216;directive&amp;#8217; to the form in the view like so: &lt;br /&gt;&lt;code&gt;&amp;lt;% form_for([:admin,@dealer], :html =&amp;gt; {:multipart =&amp;gt; true }) do |f| %&amp;gt;&lt;/code&gt;. &lt;br /&gt;I&amp;#8217;m not sure if this is &lt;em&gt;the way&lt;/em&gt; or a &lt;strong&gt;bad&lt;/strong&gt; way. &lt;br /&gt;Btw, after moving this stuff into my admin directory, I can&amp;#8217;t get the image uploading recipe to work on these controllers!&lt;br /&gt;It was not something that was easy to google.&lt;br /&gt;Thanks&lt;/p&gt;</description>
      <pubDate>Wed, 16 Jan 2008 16:27:42 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:43:173:2175</guid>
      <author>eddie may</author>
      <link>http://forums.pragprog.com/forums/43/topics/173</link>
    </item>
    <item>
      <title>Suggestions for Recipes posted by Alain Ravet @ Tue, 08 Jan 2008 22:13:49 -0000</title>
      <description>&lt;p&gt;When I need a progress bar in a screen, I use a super simple Ajax Request-chaining technique that I call &amp;#8220;Action Chunking&amp;#8221;. It&amp;#8217;s basically 4 lines of code + some code reorganisation; it doesn&amp;#8217;t require any plugin or special server configuration.&lt;/p&gt;


	&lt;p&gt;See :&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;words : &lt;a href="http://docs.google.com/Doc?id=ddmqwkxs_3972nphr5fk"&gt;http://docs.google.com/Doc?id=ddmqwkxs_3972nphr5fk&lt;/a&gt;
demo : &lt;a href="http://screencast.com/t/GiwRm3ziQy"&gt;http://screencast.com/t/GiwRm3ziQy&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;I don&amp;#8217;t remember seing this elsewhere, so it could maybe turn into a recipe.&lt;/p&gt;</description>
      <pubDate>Tue, 08 Jan 2008 22:13:49 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:43:173:2146</guid>
      <author>Alain Ravet</author>
      <link>http://forums.pragprog.com/forums/43/topics/173</link>
    </item>
    <item>
      <title>Suggestions for Recipes posted by Mike Clark @ Tue, 08 Jan 2008 05:27:30 -0000</title>
      <description>&lt;p&gt;William:  Thanks.  The multi-model form recipe is in the latest beta revision, along with a recipe for a wizard-like interface.&lt;/p&gt;</description>
      <pubDate>Tue, 08 Jan 2008 05:27:30 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:43:173:2139</guid>
      <author>Mike Clark</author>
      <link>http://forums.pragprog.com/forums/43/topics/173</link>
    </item>
    <item>
      <title>Suggestions for Recipes posted by William DeVaul @ Sun, 06 Jan 2008 20:58:07 -0000</title>
      <description>&lt;p&gt;Thanks Mike.  That is very helpful.&lt;/p&gt;


	&lt;p&gt;I would +1 on the multi-form model, e.g. a multi-page checkout screen.&lt;/p&gt;


	&lt;p&gt;Bill&lt;/p&gt;</description>
      <pubDate>Sun, 06 Jan 2008 20:58:07 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:43:173:2133</guid>
      <author>William DeVaul</author>
      <link>http://forums.pragprog.com/forums/43/topics/173</link>
    </item>
    <item>
      <title>Suggestions for Recipes posted by Mike Clark @ Fri, 04 Jan 2008 21:23:08 -0000</title>
      <description>&lt;p&gt;William: I use will_paginate:&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://errtheblog.com/posts/56-im-paginating-again"&gt;http://errtheblog.com/posts/56-im-paginating-again&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 04 Jan 2008 21:23:08 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:43:173:2112</guid>
      <author>Mike Clark</author>
      <link>http://forums.pragprog.com/forums/43/topics/173</link>
    </item>
    <item>
      <title>Suggestions for Recipes posted by William DeVaul @ Fri, 04 Jan 2008 20:27:37 -0000</title>
      <description>&lt;p&gt;Has a decent pagination resource been covered somewhere extensively?  If not, how about a recipe for improved pagination?&lt;/p&gt;</description>
      <pubDate>Fri, 04 Jan 2008 20:27:37 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:43:173:2111</guid>
      <author>William DeVaul</author>
      <link>http://forums.pragprog.com/forums/43/topics/173</link>
    </item>
    <item>
      <title>Suggestions for Recipes posted by Mike Clark @ Wed, 02 Jan 2008 20:34:25 -0000</title>
      <description>&lt;p&gt;Hemant wrote a great recipe on the latest version of BackgrounDRb in the latest beta version which was just uploaded today.&lt;/p&gt;


	&lt;p&gt;Thanks, Hemant!&lt;/p&gt;</description>
      <pubDate>Wed, 02 Jan 2008 20:34:25 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:43:173:2094</guid>
      <author>Mike Clark</author>
      <link>http://forums.pragprog.com/forums/43/topics/173</link>
    </item>
    <item>
      <title>Suggestions for Recipes posted by Hemant Kumar @ Mon, 17 Dec 2007 10:08:58 -0000</title>
      <description>&lt;p&gt;If Mike agrees, I can write a recipe on BackgrounDRb. Its rather correct time to have this up, since BackgrounDRb 1.0 release will be out there in a day or two.&lt;/p&gt;</description>
      <pubDate>Mon, 17 Dec 2007 10:08:58 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:43:173:2037</guid>
      <author>Hemant Kumar</author>
      <link>http://forums.pragprog.com/forums/43/topics/173</link>
    </item>
    <item>
      <title>Suggestions for Recipes posted by Skyblaze @ Fri, 14 Dec 2007 21:30:11 -0000</title>
      <description>&lt;p&gt;i agree with the above topics. Then it would be great to insert some in-dept recipes for real topics too&amp;#8230;.&lt;/p&gt;</description>
      <pubDate>Fri, 14 Dec 2007 21:30:11 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:43:173:2031</guid>
      <author>Skyblaze</author>
      <link>http://forums.pragprog.com/forums/43/topics/173</link>
    </item>
    <item>
      <title>Suggestions for Recipes posted by Michael Schuerig @ Fri, 14 Dec 2007 18:45:26 -0000</title>
      <description>&lt;p&gt;I&amp;#8217;ve got the beta book and it looks quite good already. I have a few qualms about the title as I&amp;#8217;m not convinced that those recipes really are &amp;#8220;advanced&amp;#8221; as compared to &amp;#8220;more&amp;#8221;. Anyway, I take it there are still a few pages to be filled and these are my suggestions:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;Multi-step forms and wizards&lt;/li&gt;
		&lt;li&gt;Long-running and periodic tasks (backgrounDRb, bj)&lt;/li&gt;
		&lt;li&gt;Custom validations&lt;/li&gt;
		&lt;li&gt;Ajax Uploads (responds_to_parent plugin)&lt;/li&gt;
		&lt;li&gt;Upload progress&lt;/li&gt;
		&lt;li&gt;Admin-only &amp;#8220;maintenance&amp;#8221; UI&lt;/li&gt;
		&lt;li&gt;Editing has_many and habtm associations&lt;/li&gt;
		&lt;li&gt;Authorization at instance and attribute level&lt;/li&gt;
		&lt;li&gt;callbacks and observers; built-in and self-defined&lt;/li&gt;
	&lt;/ul&gt;</description>
      <pubDate>Fri, 14 Dec 2007 18:45:26 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:43:173:2029</guid>
      <author>Michael Schuerig</author>
      <link>http://forums.pragprog.com/forums/43/topics/173</link>
    </item>
  </channel>
</rss>
