<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Garbage Burrito! - Latest Blog Comments</title>
    <link>http://www.garbageburrito.com/blog</link>
    <language>en-us</language>
    <item>
      <title>Organizing Large Rails Projects, the Simple Way - Christian Louboutin On Sale</title>
      <description>&lt;p&gt;Good article , your article rich in literary talent , technique and describe very unique style of humor , brings a joy and festivity. Not only that, your article is rich with a lot of useful knowledge and helpful information . Thank you for sharing .&lt;/p&gt;</description>
      <pubDate>Tue, 17 Jan 2012 10:08:06 +0200</pubDate>
      <link>http://www.garbageburrito.com/blog/entry/1326901/organizing-large-rails-projects-the-simple-way#comment3794993</link>
      <guid>/blog/entry/1326901/organizing-large-rails-projects-the-simple-way#comment3794993</guid>
    </item>
    <item>
      <title>New Project - LiveOn.com - Ben Kittrell </title>
      <description>&lt;p&gt;Good point Phil :)  What are you up to these days?&lt;/p&gt;</description>
      <pubDate>Sun, 18 Dec 2011 22:39:46 +0200</pubDate>
      <link>http://www.garbageburrito.com/blog/entry/1910173/new-project-liveoncom#comment3666053</link>
      <guid>/blog/entry/1910173/new-project-liveoncom#comment3666053</guid>
    </item>
    <item>
      <title>New Project - LiveOn.com - Phil</title>
      <description>&lt;p&gt;In looking over your resume', I feel it would be very beneficial for you to also include your insane bass abilities to include your punk rock past with the terrified liberals and knots.&lt;/p&gt;

&lt;p&gt;Looks like all is amazing. Miss ya Ben!&lt;/p&gt;</description>
      <pubDate>Thu, 15 Dec 2011 10:20:33 +0200</pubDate>
      <link>http://www.garbageburrito.com/blog/entry/1910173/new-project-liveoncom#comment3661133</link>
      <guid>/blog/entry/1910173/new-project-liveoncom#comment3661133</guid>
    </item>
    <item>
      <title>Organizing Large Rails Projects, the Simple Way - James Mickle</title>
      <description>&lt;p&gt;I've been using Engines for a couple of years and I've found it way to cumbersome for just organizing code. &amp;lt;a href =&amp;quot;&lt;a href="http://madrid.senorstag.com&amp;quot;&amp;gt;madrid" rel="nofollow"&gt;http://madrid.senorstag.com&amp;quot;&amp;gt;madrid&lt;/a&gt; karting&amp;lt;/a&amp;gt;  I looked into Namespacing, but I don't want to have the namespaces in the URLs.  All I want is to be able to organize code into subdirectories.&lt;/p&gt;</description>
      <pubDate>Sat, 22 Oct 2011 08:00:47 +0300</pubDate>
      <link>http://www.garbageburrito.com/blog/entry/1326901/organizing-large-rails-projects-the-simple-way#comment3555943</link>
      <guid>/blog/entry/1326901/organizing-large-rails-projects-the-simple-way#comment3555943</guid>
    </item>
    <item>
      <title>Automatic Ajax Loading Images With Prototype - ananth@websolusionz.com</title>
      <description>&lt;p&gt;thanks. the coding is not working for me. i have called the ajax.Responder inside a &amp;lt;script&amp;gt; tag. am i need to use the prototype.js file ? &lt;/p&gt;</description>
      <pubDate>Mon, 25 Jul 2011 13:53:33 +0300</pubDate>
      <link>http://www.garbageburrito.com/blog/entry/30/automatic-ajax-loading-images-with-prototype#comment3305393</link>
      <guid>/blog/entry/30/automatic-ajax-loading-images-with-prototype#comment3305393</guid>
    </item>
    <item>
      <title>Organizing Large Rails Projects, the Simple Way - Robert Williams</title>
      <description>&lt;p&gt;I actually found this useful I''m not a spammer, &lt;/p&gt;

&lt;p&gt;Organising our Rails project now that it's grown in size is something we need and this has pointed me in the right direction&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;</description>
      <pubDate>Mon, 06 Jun 2011 13:50:45 +0300</pubDate>
      <link>http://www.garbageburrito.com/blog/entry/1326901/organizing-large-rails-projects-the-simple-way#comment3241993</link>
      <guid>/blog/entry/1326901/organizing-large-rails-projects-the-simple-way#comment3241993</guid>
    </item>
    <item>
      <title>Custom Captcha System Using Static Images - Vic</title>
      <description>&lt;p&gt;Info in your blog help me with my project, whitch based on &amp;lt;a href=&amp;quot;&lt;a href="http://stavki.com/rossijskie-bukmekerskie-kontory.html&amp;quot;&amp;gt;&#1073;&#1091;&#1082;&#1084;&#1077;&#1082;&#1077;&#1088;&#1099;&amp;lt;/a&amp;amp;gt" rel="nofollow"&gt;http://stavki.com/rossijskie-bukmekerskie-kontory.html&amp;quot;&amp;gt;&#1073;&#1091;&#1082;&#1084;&#1077;&#1082;&#1077;&#1088;&#1099;&amp;lt;/a&amp;gt&lt;/a&gt;; and i like your post!tw&lt;/p&gt;</description>
      <pubDate>Thu, 19 May 2011 11:53:37 +0300</pubDate>
      <link>http://www.garbageburrito.com/blog/entry/449991/custom-captcha-system-using-static-images#comment3224061</link>
      <guid>/blog/entry/449991/custom-captcha-system-using-static-images#comment3224061</guid>
    </item>
    <item>
      <title>Center Elements Horizontally and Vertically with Prototype - auto scanner</title>
      <description>&lt;p&gt;this utility could also capture elements passing through and add them to an interval that provides dynamic resizing when the dom mutates... allot easier than stubbing in a buch or overly complex event functions everywhere.
&lt;/p&gt;</description>
      <pubDate>Thu, 07 Apr 2011 09:31:56 +0300</pubDate>
      <link>http://www.garbageburrito.com/blog/entry/1151251/center-elements-horizontally-and-vertically-with-prototype#comment3180781</link>
      <guid>/blog/entry/1151251/center-elements-horizontally-and-vertically-with-prototype#comment3180781</guid>
    </item>
    <item>
      <title>Calling for a better HTML File Input - Ben Kittrell </title>
      <description>&lt;p&gt;Sorry Ryan, accidentally deleted your comment cleaning up spam. &lt;/p&gt;</description>
      <pubDate>Fri, 25 Mar 2011 19:54:18 +0200</pubDate>
      <link>http://www.garbageburrito.com/blog/entry/1107721/calling-for-a-better-html-file-input#comment3168471</link>
      <guid>/blog/entry/1107721/calling-for-a-better-html-file-input#comment3168471</guid>
    </item>
    <item>
      <title>Table Editor for YUI's Rich Text Editor - Slight</title>
      <description>&lt;p&gt;You're a star, thanks mate.&lt;/p&gt;</description>
      <pubDate>Thu, 03 Mar 2011 19:12:57 +0200</pubDate>
      <link>http://www.garbageburrito.com/blog/entry/1070621/table-editor-for-yuis-rich-text-editor#comment3144401</link>
      <guid>/blog/entry/1070621/table-editor-for-yuis-rich-text-editor#comment3144401</guid>
    </item>
    <item>
      <title>Rails: Super Cool Simple Column Sorting - Scott S</title>
      <description>&lt;p&gt;This is great, thanks!  - It took me awhile to realize that the &amp;quot;created at&amp;quot; part was the default sort and that I just needed to add my default ( me -&amp;gt; n00b). I also modified it a little to allow for case insensitive sort - also took me awhile to figure out where it went but simple enough: &lt;/p&gt;

&lt;p&gt;def sort_order(default)
&lt;br /&gt;  &amp;quot;LOWER( #{(params[:c] || default.to_s).gsub(/[\s;'\&amp;quot;]/,'')} ) #{params[:d] == 'down' ? 'DESC' : 'ASC'}&amp;quot;
&lt;br /&gt;end&lt;/p&gt;</description>
      <pubDate>Fri, 18 Feb 2011 03:27:22 +0200</pubDate>
      <link>http://www.garbageburrito.com/blog/entry/447/rails-super-cool-simple-column-sorting#comment3130301</link>
      <guid>/blog/entry/447/rails-super-cool-simple-column-sorting#comment3130301</guid>
    </item>
    <item>
      <title>Table Editor for YUI's Rich Text Editor - Gamoniac</title>
      <description>&lt;p&gt;Nice work, Ben.  Thanks!&lt;/p&gt;</description>
      <pubDate>Thu, 10 Feb 2011 07:08:30 +0200</pubDate>
      <link>http://www.garbageburrito.com/blog/entry/1070621/table-editor-for-yuis-rich-text-editor#comment3121411</link>
      <guid>/blog/entry/1070621/table-editor-for-yuis-rich-text-editor#comment3121411</guid>
    </item>
    <item>
      <title>Lessons From Home Renovation - Nothing is That Complicated - basement finisher Toronto</title>
      <description>&lt;p&gt;This is such an inspiring article and i love your motivation. If you wanna do something dont be afraid to give it a shot. Thanks for sharing!&lt;/p&gt;</description>
      <pubDate>Thu, 10 Feb 2011 03:43:52 +0200</pubDate>
      <link>http://www.garbageburrito.com/blog/entry/240451/lessons-from-home-renovation-nothing-is-that-complicated#comment3121081</link>
      <guid>/blog/entry/240451/lessons-from-home-renovation-nothing-is-that-complicated#comment3121081</guid>
    </item>
    <item>
      <title>Kitchen Renovation - Round Two - kitchen canisters</title>
      <description>&lt;p&gt;I have canisters like that in my kitchen too. When I bought them I intended to find some pretty vintage teacups, but while I was waiting for the perfect cups, I put my Fiesta cups in them. (one yellow, one blue) and decided they were fine. Of course, I could still come across some must have teacups someday!
&lt;br /&gt;I also have a 3rd clear canister I use for (homemade) hot chocolate mix in the winter. &lt;/p&gt;</description>
      <pubDate>Sat, 29 Jan 2011 08:46:58 +0200</pubDate>
      <link>http://www.garbageburrito.com/blog/entry/29424/kitchen-renovation-round-two#comment3107001</link>
      <guid>/blog/entry/29424/kitchen-renovation-round-two#comment3107001</guid>
    </item>
    <item>
      <title>Table Editor for YUI's Rich Text Editor - John Winningham</title>
      <description>&lt;p&gt;Excellent plugin for RTE!  Saved me a day or two of banging my head against my desk.  &lt;/p&gt;</description>
      <pubDate>Mon, 20 Dec 2010 18:24:26 +0200</pubDate>
      <link>http://www.garbageburrito.com/blog/entry/1070621/table-editor-for-yuis-rich-text-editor#comment3067591</link>
      <guid>/blog/entry/1070621/table-editor-for-yuis-rich-text-editor#comment3067591</guid>
    </item>
    <item>
      <title>Re-order Multiple Items by Number - Joshua</title>
      <description>&lt;p&gt;Thank you.  :)  Really appreciate the help.  &lt;/p&gt;</description>
      <pubDate>Sat, 18 Dec 2010 14:44:23 +0200</pubDate>
      <link>http://www.garbageburrito.com/blog/entry/1252411/reorder-multiple-items-by-number#comment3066051</link>
      <guid>/blog/entry/1252411/reorder-multiple-items-by-number#comment3066051</guid>
    </item>
    <item>
      <title>Re-order Multiple Items by Number - Ben Kittrell</title>
      <description>&lt;p&gt;So first you need to make sure that when you're generating the form you're putting the id's in the text box names.  This is the only way to know what order you want to assign to what object.&lt;/p&gt;

&lt;p&gt;Your's should look something like this.&lt;/p&gt;

&lt;p&gt;&amp;lt;%= text_field_tag &amp;quot;order_#{project.id}&amp;quot;, project.position, :length =&amp;gt; 3, :class =&amp;gt; 'position' %&amp;gt;&lt;/p&gt;

&lt;p&gt;But the reason your's is failing is because by default Active Record Objects' primary key is just 'id'.  So it should be project.id instead of project.project_id.
&lt;/p&gt;</description>
      <pubDate>Fri, 17 Dec 2010 10:46:02 +0200</pubDate>
      <link>http://www.garbageburrito.com/blog/entry/1252411/reorder-multiple-items-by-number#comment3065351</link>
      <guid>/blog/entry/1252411/reorder-multiple-items-by-number#comment3065351</guid>
    </item>
    <item>
      <title>Re-order Multiple Items by Number - Joshua</title>
      <description>&lt;p&gt;Thanks Ben, I am so close to getting it to work.  :)   &lt;/p&gt;

&lt;p&gt;I think my hangup is here:&lt;/p&gt;

&lt;p&gt;order = params[&amp;quot;order_#{image.image_id}&amp;quot;.to_sym]&lt;/p&gt;

&lt;p&gt;I'm confused at how you are grabbing the new-found order.  &amp;quot;.to_sym&amp;quot; is easy enough to understand and I know you're grabbing a value using params to store in &amp;quot;order&amp;quot;... it's the middle that I'm not understanding.&lt;/p&gt;

&lt;p&gt;I'm trying:&lt;/p&gt;

&lt;p&gt;@projects = Project.all&lt;/p&gt;

&lt;p&gt;        changed = Array.new&lt;/p&gt;

&lt;p&gt;        # Get the projects that changed order
&lt;br /&gt;        for project in @projects
&lt;br /&gt;            order = params[&amp;quot;order_#{@projects.project_id}&amp;quot;.to_sym]
&lt;br /&gt;            if !order.blank? &amp;amp;&amp;amp; order =~ /^\d+$/ &amp;amp;&amp;amp; project.priority.to_i != order.to_i
&lt;br /&gt;              project.priority = order.to_i
&lt;br /&gt;              changed &amp;lt;&amp;lt; project
&lt;br /&gt;            end 
&lt;br /&gt;        end &lt;/p&gt;

&lt;p&gt;and getting:&lt;/p&gt;

&lt;p&gt;undefined method `project_id' for #&amp;lt;Project:0x103102df0&amp;gt;&lt;/p&gt;

&lt;p&gt;Thanks again for the code, been a great learning exercise. &lt;/p&gt;</description>
      <pubDate>Wed, 15 Dec 2010 23:48:12 +0200</pubDate>
      <link>http://www.garbageburrito.com/blog/entry/1252411/reorder-multiple-items-by-number#comment3064231</link>
      <guid>/blog/entry/1252411/reorder-multiple-items-by-number#comment3064231</guid>
    </item>
    <item>
      <title>Re-order Multiple Items by Number - Ben Kittrell</title>
      <description>&lt;p&gt;@Joshua&lt;/p&gt;

&lt;p&gt;I'm glad you find it helpful.  I went through quite a few different algorithms before I settled on this and figured someone else could use it.&lt;/p&gt;

&lt;p&gt;1. That is correct.  order is the value of each text box submitted. idx is just incrementing integer and is there so that the positions start at 1 and have no gaps.&lt;/p&gt;

&lt;p&gt;2. .compact is a Array method that removes empty Array elements.  If someone enters a position that is greater than the size of the Array then there will be empty elements.&lt;/p&gt;</description>
      <pubDate>Wed, 15 Dec 2010 00:37:44 +0200</pubDate>
      <link>http://www.garbageburrito.com/blog/entry/1252411/reorder-multiple-items-by-number#comment3063191</link>
      <guid>/blog/entry/1252411/reorder-multiple-items-by-number#comment3063191</guid>
    </item>
    <item>
      <title>Re-order Multiple Items by Number - Joshua Morrison</title>
      <description>&lt;p&gt;Awesome, thanks!  I've been searching for a Ruby on Rails 3.0.3 netflix-type queue logic and so far I think you are the only person that's sharing it on the web.  Unfortunately I'm not familiar enough with Rails yet to know where to put this... I'm thinking under the &amp;quot;def index&amp;quot; in my particular resource's controller.&lt;/p&gt;

&lt;p&gt;Two quick questions please:&lt;/p&gt;

&lt;p&gt;1. Am I right in thinking that &amp;quot;order&amp;quot; and &amp;quot;idx&amp;quot; are just private variables where image.position is where you actually store the order number as an attribute/column in the table?&lt;/p&gt;

&lt;p&gt;2.  Is &amp;quot;.compact&amp;quot; another attribute/column you created for your image resource... or is it a method that calls something needed to complete the re-indexing?&lt;/p&gt;

&lt;p&gt;Thanks for posting this, I love Ruby and Rails but I know I'm only at the tip of the iceberg in beginning to learn them.  :)&lt;/p&gt;

&lt;p&gt;Joshua   &lt;/p&gt;</description>
      <pubDate>Tue, 14 Dec 2010 17:16:34 +0200</pubDate>
      <link>http://www.garbageburrito.com/blog/entry/1252411/reorder-multiple-items-by-number#comment3062761</link>
      <guid>/blog/entry/1252411/reorder-multiple-items-by-number#comment3062761</guid>
    </item>
  </channel>
</rss>

