Ruby and Rails Most Popular Stories http://ruby.feedables.com :feeding_you => now en-us Rails Envy Podcast - Episode #053: 10/29/08 http://ruby.feedables.com/go/1343201/Rails-Envy-Podcast--Episode-053-102908 [via http://www.railsenvy.com/ @ October 29, 2008 @ 4:21pm] Wed, 29 Oct 2008 16:21:51 +0000 http://ruby.feedables.com/story/1343201/Rails-Envy-Podcast--Episode-053-102908 Episode 134: Paperclip http://ruby.feedables.com/go/1377866/Episode-134-Paperclip Need to add image attachments to a model? See how with paperclip in this episode. [via http://railscasts.com/ @ November 3, 2008 @ 8:00am] Mon, 03 Nov 2008 08:00:00 +0000 http://ruby.feedables.com/story/1377866/Episode-134-Paperclip 3 Tools for DRYing Your Ruby Code http://ruby.feedables.com/go/1413527/3-Tools-for-DRYing-Your-Ruby-Code <p><img src="http://www.rubyinside.com/wp-content/uploads/2008/11/hercules-and-atlas.gif" width="137" height="143" alt="hercules-and-atlas.gif" style="float:left; margin-right:12px; margin-bottom:12px;" /> We've all heard the admonitions: "Don't Repeat Yourself!" But how do you avoid this if you're working on a Ruby codebase that stretches to thousands of lines, maintained by multiple developers? One answer is to run a tool that looks for duplicate code. This is an area where good tools are tantalizingly close - there are at least three out there that are worth checking out:</p> <h3>Towelie</h3> <p>The first contender is Giles Bowkett's <a href="http://github.com/gilesbowkett/towelie/tree">Towelie</a>, which uses <a href="http://rubyforge.org/projects/parsetree/">parsetree</a> and ruby2ruby to look through a&#8230;</p> [via http://www.rubyinside.com/ @ November 7, 2008 @ 9:03pm] Fri, 07 Nov 2008 21:03:01 +0000 http://ruby.feedables.com/story/1413527/3-Tools-for-DRYing-Your-Ruby-Code Repost: Rails Envy Podcast - Episode #053 http://ruby.feedables.com/go/1355311/Repost-Rails-Envy-Podcast--Episode-053 [via http://www.railsenvy.com/ @ October 31, 2008 @ 3:17am] Fri, 31 Oct 2008 03:17:07 +0000 http://ruby.feedables.com/story/1355311/Repost-Rails-Envy-Podcast--Episode-053 90. fields_for and the index option in Rails http://ruby.feedables.com/go/584148/90-fields_for-and-the-index-option-in-Rails <p>In this episode you learn how to use fields_for and the index option to create a new parent model with multiple child models on one post.</p><p>This tip will simplify your code in the controller. Based on the blog post by <a href="http://www.stephenchu.com/2008/03/paramsfu-3-using-fieldsfor-and-index.html" title="params fu #3">params ful #3</a> and #5 by Stephen Chu. </p><div class="feedflare"> <a href="http://feeds.feedburner.com/~f/rubyplus?a=UfCYTJ"><img src="http://feeds.feedburner.com/~f/rubyplus?i=UfCYTJ" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/rubyplus?a=JgMIjJ"><img src="http://feeds.feedburner.com/~f/rubyplus?i=JgMIjJ" border="0"></img></a> </div><img src="http://feeds.feedburner.com/~r/rubyplus/~4/327080919" height="1" width="1"/> [via http://www.rubyplus.org/ @ July 5, 2008 @ 2:12am] Sat, 05 Jul 2008 02:12:50 +0000 http://ruby.feedables.com/story/584148/90-fields_for-and-the-index-option-in-Rails ANSI http://ruby.feedables.com/go/1465166/ANSI Use ANSI codes in printed output, including colors and controlling the cursor, clearing the line, and clearing the screen <p><a href="http://feeds.feedburner.com/~a/RubyOnRailsPlugins?a=slgzQo"><img src="http://feeds.feedburner.com/~a/RubyOnRailsPlugins?i=slgzQo" border="0"></img></a></p> [via http://agilewebdevelopment.com/plugins @ November 14, 2008 @ 7:17am] Fri, 14 Nov 2008 07:17:29 +0000 http://ruby.feedables.com/story/1465166/ANSI PeepCode is [No Longer] Looking to Hire a Virtual Assistant http://ruby.feedables.com/go/583963/PeepCode-is-No-Longer-Looking-to-Hire-a-Virtual-Assistant <p><strong><span class="caps">UPDATE</span></strong> Thanks for the 40 replies right away! We&#8217;ll read through them and reply soon. Thanks!</p> <p><a href="http://peepcode.com">PeepCode</a> is hiring! I interviewed two part-time editors last week and am now looking for a virtual office assistant. I&#8217;m offering $18/hour to start for 2-3 days a week. This will probably turn into a full-time position with increased pay and benefits within the next few months.</p> <p>This is a non-programming position. Duties include:</p> <ul> <li>Internet research</li> <li>Customer service</li> <li>Promotion via email and web</li> <li>Data entry</li> <li>Various other creative tasks</li> </ul> <p>Preferred skills are:</p> <ul> <li>Ability to use the web and email</li> <li>Familiarity with a Macintosh</li> <li>Willingness to learn new things</li> <li>Regular communication with Topfunky headquarters</li> <li>Ownership of a business license (sole proprietor is OK, we can help you fill out the paperwork if you don&#8217;t have one already)</li> </ul> <p>None of these tasks are time-sensitive, so you can work from home at whatever time of day (or week) is best for you. Send your resume via email to <a href="mailto:peepcode@topfunky.com?subject=VA">peepcode@topfunky.com</a> with VA in the subject.</p> <h3>Dublin</h3> <div class="figure med" id="figure-a"><img src="http://nubyonrails.com/system/uploads/2008/dublin-a.jpg" alt="Dublin from my hotel window" title="Figure A" /><div><strong>Figure A</strong> Dublin from my hotel window</div></div> <p>I had a great time in Dublin at the end of June. I spoke at an <a href="http://iotc.firstport.ie/">open source conference</a> and met several other Rubyists while I was there.</p> <p>I&#8217;ve frequently felt that I should bring home some tchotchke from each of the places I visit. While in Dublin I realized that it&#8217;s not extra things that I really want, <a href="http://www.imdb.com/title/tt0070723/quotes">it&#8217;s people</a>!</p> <p>If you&#8217;re traveling for business or pleasure, I highly suggest that you find the local Ruby group or find a local co-working space and meet people there. I had breakfast with <a href="http://ananelson.com/">Ana Nelson</a>, who introduced me to Paul Campbell of <a href="http://www.contrast.ie/">Contrast</a>, who is working on an error reporting <a href="http://getexceptional.com/beta">webapp</a> for Rails developers.</p> <p>He introduced me to <a href="http://www.eamonleonard.com/">Eamon Leonard</a> and <a href="http://blog.agoraproduction.com/">David Coallier</a> who happen to be a few <a href="http://podcast.rubyonrails.org/system/audio/2008/uncut/whistle.mp3">musically inclined</a> PHP developers. We had a great time exploring the pubs of Dublin, and I learned that <a href="http://www.guinness.com">Guinness beer</a> has a different taste in Dublin than anywhere else in the world.</p> <p>Oh, and a few members of <a href="http://rubyireland.com/">Ruby Ireland</a> hosted a nice dinner in the city.</p> <p>So the next time you find yourself in an unknown city, meet the locals!</p> <div class="figure large" id="figure-b"><img src="http://nubyonrails.com/system/uploads/2008/dublin-b.jpg" alt="Dublin alley" title="Figure B" /><div><strong>Figure B</strong> Dublin alley</div></div> <div class="figure large" id="figure-c"><img src="http://nubyonrails.com/system/uploads/2008/dublin-contrast-clocks.jpg" alt="Clocks at the Contrast co-working space" title="Figure C" /><div><strong>Figure C</strong> Clocks at the Contrast co-working space</div></div> <div class="figure large" id="figure-d"><img src="http://nubyonrails.com/system/uploads/2008/dublin-ruby.jpg" alt="Ruby Ireland meetup" title="Figure D" /><div><strong>Figure D</strong> Ruby Ireland meetup</div></div> <h3>Elsewhere</h3> <p>I just published a new PeepCode screencast about <a href="http://peepcode.com/products/phusion-passenger">Phusion Passenger</a> (technical editing by <a href="http://phusion.nl">Phusion</a> staff).</p> <p>I&#8217;ll be speaking about podcasting and entrepreneurship at <a href="http://www.bizjamseattle.com/schedule/business-networking-via-personal-journalism/">BizJam Seattle</a> on Wednesday, July 9.</p> <p>Jim Freeze wanted me to mention that the <a href="http://www.lonestarrubyconf.com/">Lone Star Ruby Conference</a> is open for registration. I&#8217;ll be at <a href="http://en.oreilly.com/railseurope2008/">RailsConf in Berlin</a> at that time, but I&#8217;m sure it will be a great conference if you can get yourself to Texas. I frequently post other worldwide conference and workshop events at <a href="http://rubyonrailsworkshops.com/">Ruby on Rails Workshops</a>.</p> <p>Also, I&#8217;ve helped to launch a Deck-like ad network for Ruby blogs. We have several top quality publishers and have a few spots for advertisers. If you have a product, website, or service that would be of interest to Rubyists, check out <a href="http://rubyrow.net/rooms/ruby">Ruby Row</a>.</p> <hr /> <a href='http://peepcode.com/?r=nubyrss'>PeepCode Screencasts</a> &#8211; Learn Ruby on Rails and Javascript! Hour-long screencasts for $9. [via http://nubyonrails.com/ @ July 7, 2008 @ 10:24pm] Mon, 07 Jul 2008 22:24:23 +0000 http://ruby.feedables.com/story/583963/PeepCode-is-No-Longer-Looking-to-Hire-a-Virtual-Assistant ignore_nil http://ruby.feedables.com/go/1465167/ignore_nil ignore_nil lets you happily ignore nil method errors on long method chains. <p><a href="http://feeds.feedburner.com/~a/RubyOnRailsPlugins?a=i74WX4"><img src="http://feeds.feedburner.com/~a/RubyOnRailsPlugins?i=i74WX4" border="0"></img></a></p> [via http://agilewebdevelopment.com/plugins @ November 14, 2008 @ 7:08am] Fri, 14 Nov 2008 07:08:14 +0000 http://ruby.feedables.com/story/1465167/ignore_nil redpill_httperf_recorder http://ruby.feedables.com/go/1457151/redpill_httperf_recorder Record requests in httperf format. <p><a href="http://feeds.feedburner.com/~a/RubyOnRailsPlugins?a=Ziadfq"><img src="http://feeds.feedburner.com/~a/RubyOnRailsPlugins?i=Ziadfq" border="0"></img></a></p> [via http://agilewebdevelopment.com/plugins @ November 6, 2008 @ 12:32pm] Thu, 06 Nov 2008 12:32:23 +0000 http://ruby.feedables.com/story/1457151/redpill_httperf_recorder Forgery http://ruby.feedables.com/go/1457149/Forgery Easy and customizable generation of forged data. <p><a href="http://feeds.feedburner.com/~a/RubyOnRailsPlugins?a=c5wX9P"><img src="http://feeds.feedburner.com/~a/RubyOnRailsPlugins?i=c5wX9P" border="0"></img></a></p> [via http://agilewebdevelopment.com/plugins @ November 12, 2008 @ 9:47pm] Wed, 12 Nov 2008 21:47:25 +0000 http://ruby.feedables.com/story/1457149/Forgery Ruby Developers For Hire http://ruby.feedables.com/go/1328042/Ruby-Developers-For-Hire [via http://www.railsenvy.com/ @ October 27, 2008 @ 7:30pm] Mon, 27 Oct 2008 19:30:46 +0000 http://ruby.feedables.com/story/1328042/Ruby-Developers-For-Hire Episode 133: Capistrano Tasks http://ruby.feedables.com/go/1324028/Episode-133-Capistrano-Tasks Do you know how to make Capistrano tasks? See how to change default deployment behavior with custom tasks in this episode. [via http://railscasts.com/ @ October 27, 2008 @ 7:00am] Mon, 27 Oct 2008 07:00:00 +0000 http://ruby.feedables.com/story/1324028/Episode-133-Capistrano-Tasks Cucumber: The Latest in Ruby Testing http://ruby.feedables.com/go/1506460/Cucumber-The-Latest-in-Ruby-Testing <p><img class="alignleft size-medium wp-image-1344" src="http://www.rubyinside.com/wp-content/uploads/2008/11/cucumber.png" alt="" width="129" height="91" style="margin: 0px 8px 8px 0px; float: left" />Testing is a firmly ingrained part of the Ruby culture: you probably ran across <a href="http://www.ruby-doc.org/stdlib/libdoc/test/unit/rdoc/classes/Test/Unit.html">Test::Unit</a> not long after you first started writing Ruby code (though it wouldn't be surprising if you ignored it for a while). But it hasn't been a static part of Ruby - we've seen the simple availability of tests evolve into test-driven development (TDD) that in turn gave rise to behavior-driven development (BDD). Along the way, Ruby has spawned a variety of testing tools and frameworks.<strong> The latest,&#8230;</strong></p> [via http://www.rubyinside.com/ @ November 19, 2008 @ 7:35pm] Wed, 19 Nov 2008 19:35:20 +0000 http://ruby.feedables.com/story/1506460/Cucumber-The-Latest-in-Ruby-Testing Rails Envy Podcast - Episode #055: 11/12/2008 http://ruby.feedables.com/go/1452697/Rails-Envy-Podcast--Episode-055-11122008 [via http://www.railsenvy.com/ @ November 13, 2008 @ 3:18am] Thu, 13 Nov 2008 03:18:01 +0000 http://ruby.feedables.com/story/1452697/Rails-Envy-Podcast--Episode-055-11122008 SanitizeEmail http://ruby.feedables.com/go/1457152/SanitizeEmail SanitizeEmail allows you to play with your application's email abilities without worrying that emails will get sent to actual live addresses. <p><a href="http://feeds.feedburner.com/~a/RubyOnRailsPlugins?a=h8Li8f"><img src="http://feeds.feedburner.com/~a/RubyOnRailsPlugins?i=h8Li8f" border="0"></img></a></p> [via http://agilewebdevelopment.com/plugins @ November 6, 2008 @ 3:43am] Thu, 06 Nov 2008 03:43:02 +0000 http://ruby.feedables.com/story/1457152/SanitizeEmail IOTC Open Source Conference in Dublin http://ruby.feedables.com/go/583964/IOTC-Open-Source-Conference-in-Dublin <p>I truly feel that I have the coolest job in the world.</p> <p>Two weeks ago, I was asked to speak at the <a href="http://iotc.firstport.ie/agenda/"><span class="caps">IOTC</span> Conference</a> in Dublin on June 18-20. Not only that, but they will be streaming live video of the event as it happens!</p> <p><img src="http://nubyonrails.com/system/uploads/2008/iotc.jpg" alt="" /></p> <p>Few conferences record even the <em>audio</em> of their lectures, so I&#8217;m not sure how they managed to pull this off. They must be using some of this new open source software that everyone is talking about!</p> <p>They tell me that you&#8217;ll be able to view it via a link that will be posted <a href="http://iotc.firstport.ie/lecture/23/">here</a>, next Thursday at 10:25am Dublin time.</p> <p>I&#8217;ll also be hanging out with members of <a href="http://rubyireland.com/">Ruby Ireland</a> in Dublin on Thursday night.</p> <p>Then I&#8217;ll be hurrying back home to be with my son, who aspires to be the next <a href="http://www.flickr.com/photos/muchawi/2568298445/in/photostream/">mini me</a>.</p> <h3>At PeepCode</h3> <p>The ever diligent <a href="http://ryandaigle.com/">Ryan Daigle</a> has updated our <a href="http://peepcode.com/products/rails2-pdf">Rails 2 <span class="caps">PDF</span></a> for Rails 2.1. If you purchased the first copy, you can <a href="https://peepcode.com/login">login</a> or revisit the link originally sent to you for the free update.</p> <p>If not, now is a great time to <a href="http://peepcode.com/products/rails2-pdf">buy a copy</a>!</p> <h3>And then&#8230;</h3> <p>Also, I just bought by plane ticket for <a href="http://rubyfringe.com/talks#geoffrey_grosenbach">RubyFringe</a> where I&#8217;ll attempt to resolve my degree in Philosophy with my current career in computer programming. There are definitely some interesting talks scheduled!</p> <hr /> <a href='http://peepcode.com/?r=nubyrss'>PeepCode Screencasts</a> &#8211; Learn Ruby on Rails and Javascript! Hour-long screencasts for $9. [via http://nubyonrails.com/ @ June 12, 2008 @ 2:30am] Thu, 12 Jun 2008 02:30:23 +0000 http://ruby.feedables.com/story/583964/IOTC-Open-Source-Conference-in-Dublin 87. Introduction to jQuery http://ruby.feedables.com/go/584151/87-Introduction-to-jQuery In this episode I walk you through a hello world example in jQuery and autocomplete functionality that does not make a server side call.<div class="feedflare"> <a href="http://feeds.feedburner.com/~f/rubyplus?a=FsgOnI"><img src="http://feeds.feedburner.com/~f/rubyplus?i=FsgOnI" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/rubyplus?a=cVMELI"><img src="http://feeds.feedburner.com/~f/rubyplus?i=cVMELI" border="0"></img></a> </div><img src="http://feeds.feedburner.com/~r/rubyplus/~4/319457419" height="1" width="1"/> [via http://www.rubyplus.org/ @ June 25, 2008 @ 6:02am] Wed, 25 Jun 2008 06:02:08 +0000 http://ruby.feedables.com/story/584151/87-Introduction-to-jQuery BrowserWar http://ruby.feedables.com/go/1457150/BrowserWar BrowserWar will help you to fight off evil browsers that access your website. It allows you to display custom messages to any browser/version combinations you want. <p><a href="http://feeds.feedburner.com/~a/RubyOnRailsPlugins?a=KcrNec"><img src="http://feeds.feedburner.com/~a/RubyOnRailsPlugins?i=KcrNec" border="0"></img></a></p> [via http://agilewebdevelopment.com/plugins @ November 11, 2008 @ 10:10pm] Tue, 11 Nov 2008 22:10:56 +0000 http://ruby.feedables.com/story/1457150/BrowserWar Ruby Best Practices: The Book and Interview with Gregory Brown http://ruby.feedables.com/go/1465748/Ruby-Best-Practices-The-Book-and-Interview-with-Gregory-Brown <p><a href="http://oreilly.com/catalog/9780596156749/"><img src="http://www.rubyinside.com/wp-content/uploads/2008/11/ruby-best-practices.gif" width="116" height="152" alt="ruby-best-practices.gif" style="float:left; margin-right:12px; margin-bottom:12px;" /></a>Back in March, Ruby developer Gregory Brown <a href="http://www.rubyinside.com/help-fund-a-ruby-developer-to-work-on-open-source-for-6-months-798.html">raised the idea</a> of receiving donations so he could work on open source Ruby projects full-time. It went well, and out of this project came <a href="http://www.rubyinside.com/prawn-ruby-pdf-library-987.html">Prawn, a pure Ruby PDF generation library</a>. Not one to rest on his laurels, Gregory's now working on a book for O'Reilly called <a href="http://oreilly.com/catalog/9780596156749/">Ruby Best Practices</a>, billed as "for programmers who want to use Ruby the way Rubyists do." The book will cover how to design "beautiful" APIs and&#8230;</p> [via http://www.rubyinside.com/ @ November 14, 2008 @ 3:42pm] Fri, 14 Nov 2008 15:42:45 +0000 http://ruby.feedables.com/story/1465748/Ruby-Best-Practices-The-Book-and-Interview-with-Gregory-Brown Ruby and Shoes Programming: A New Course http://ruby.feedables.com/go/1356958/Ruby-and-Shoes-Programming-A-New-Course Let&#8217;s Enjoy Ruby and Shoes Programming! RL has been conducting online Ruby programming courses that has had over 5500 participants spread across 140+ countries. This has been possible due to the extensive support provided by the mentors and assistant teachers of these courses. RL strives hard to improve the methodology and course content based on the [...] [via http://rubylearning.com/ @ October 31, 2008 @ 8:03am] Fri, 31 Oct 2008 08:03:11 +0000 http://ruby.feedables.com/story/1356958/Ruby-and-Shoes-Programming-A-New-Course Roxy - An Object Proxying Library for Ruby http://ruby.feedables.com/go/1457060/Roxy--An-Object-Proxying-Library-for-Ruby <p>When you want your objects to refer to / have associations with other objects, it can quickly become a complex procedure. Ryan Daigle to the rescue! Ryan has built <a href="http://github.com/yfactorial/roxy/tree/master">Roxy</a>, a "Ruby Proxy-Object Library." He's also put together <a href="http://ryandaigle.com/articles/2008/11/10/implement-ruby-proxy-objects-with-roxy">an awesome blog post</a> with the motivation for developing Roxy and some code examples showing how it works. Roxy gives you the ability to add some rather ActiveRecord-esque functionality to your classes and their instances.</p> <p>Straight from the horse's mouth:</p> [via http://www.rubyinside.com/ @ November 13, 2008 @ 5:10pm] Thu, 13 Nov 2008 17:10:46 +0000 http://ruby.feedables.com/story/1457060/Roxy--An-Object-Proxying-Library-for-Ruby Rails flash messages helper http://ruby.feedables.com/go/1410970/Rails-flash-messages-helper in your view: <br /> <br />display_flash(:error) # to display a specific flash message <br />display_flash # to display all flash messages <br /> <br /><code> <br /># Methods added to this helper will be available to all templates in the application. <br />module ApplicationHelper <br /> <br /> FLASH_TYPES = [:error, :warning, :success, :message] <br /> <br /> def display_flash(type = nil) <br /> html = "" <br /> <br /> if type.nil? <br /> FLASH_TYPES.each { |name| html << display_flash(name) } <br /> else <br /> return flash[type].blank? ? "" : "<div class=\"#{type}\"><p>#{flash[type]}</p></div>" <br /> end <br /> <br /> html <br /> end <br /> <br />end <br /></code> [via http://snippets.dzone.com/tag/rails @ November 7, 2008 @ 1:55pm] Fri, 07 Nov 2008 13:55:58 +0000 http://ruby.feedables.com/story/1410970/Rails-flash-messages-helper