<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Definitive Code - Latest Comments</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-283dc1b9" type="application/json"/><link>http://definitivecode.disqus.com/</link><description></description><atom:link href="http://definitivecode.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 15 Jul 2010 20:37:40 -0000</lastBuildDate><item><title>Re: Theming in Rails 2 and Rails 3</title><link>http://definitivecode.com/2010/07/10/theming-in-rails-2-and-rails-3/#comment-62454827</link><description>That would be true if the theme variable were a string. It is not.&lt;br&gt;&lt;br&gt;ActionView::Base.process_view_paths takes a string and returns a ActionView::PathSet::Path which is then prepended.&lt;br&gt;&lt;br&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Robert Rouse</dc:creator><pubDate>Thu, 15 Jul 2010 20:37:40 -0000</pubDate></item><item><title>Re: Theming in Rails 2 and Rails 3</title><link>http://definitivecode.com/2010/07/10/theming-in-rails-2-and-rails-3/#comment-62454345</link><description>Hi,&lt;br&gt;&lt;br&gt;Using "prepend_view_path" to support multiple themes is a very expensive solution. You can see another solution to this problem here: &lt;a href="http://www.axehomeyg.com/2009/06/10/view-path-manipulation-for-rails-with-aop/" rel="nofollow"&gt;http://www.axehomeyg.com/2009/...&lt;/a&gt;  &lt;br&gt;&lt;br&gt;-ozgun.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ozgun Koyun</dc:creator><pubDate>Thu, 15 Jul 2010 20:33:19 -0000</pubDate></item><item><title>Re: dnif &amp;#8211; The new search gem for sphinx</title><link>http://definitivecode.com/2010/07/05/dnif-the-new-search-gem-for-sphinx/#comment-62286437</link><description>Greg,
&lt;br&gt;
&lt;br&gt;This gem was created to a bit specific case I am working on, I needed add search to an application almost finished, and most data that should be indexed was ruby code (methods) and thinking-sphinx only index database columns.
&lt;br&gt;So I decided create a gem and share it with the world :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rafael Souza</dc:creator><pubDate>Tue, 13 Jul 2010 18:37:12 -0000</pubDate></item><item><title>Re: dnif &amp;#8211; The new search gem for sphinx</title><link>http://definitivecode.com/2010/07/05/dnif-the-new-search-gem-for-sphinx/#comment-62286434</link><description>Why not use thinking_sphinx ?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Greg</dc:creator><pubDate>Tue, 13 Jul 2010 17:41:28 -0000</pubDate></item><item><title>Re: Theming in Rails 2 and Rails 3</title><link>http://definitivecode.com/2010/07/10/theming-in-rails-2-and-rails-3/#comment-62286441</link><description>I'll adjust to make it simpler. Thank you!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Robert Rouse</dc:creator><pubDate>Mon, 12 Jul 2010 08:53:36 -0000</pubDate></item><item><title>Re: Theming in Rails 2 and Rails 3</title><link>http://definitivecode.com/2010/07/10/theming-in-rails-2-and-rails-3/#comment-62286440</link><description>real nice idea - thanks for sharing</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stephen Murdoch</dc:creator><pubDate>Mon, 12 Jul 2010 02:08:26 -0000</pubDate></item><item><title>Re: Theming in Rails 2 and Rails 3</title><link>http://definitivecode.com/2010/07/10/theming-in-rails-2-and-rails-3/#comment-62286439</link><description>FYI, Rails.root is a Pathname object. That means you can do this: YAML.load(Rails.root.join('config', 'settings.yml').open).</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James</dc:creator><pubDate>Mon, 12 Jul 2010 01:25:10 -0000</pubDate></item><item><title>Re: dnif &amp;#8211; The new search gem for sphinx</title><link>http://definitivecode.com/2010/07/05/dnif-the-new-search-gem-for-sphinx/#comment-62286433</link><description>Fair answer, and also it's much easier for people to start using it right away like this. I think this is an amazing gem for people who just need to add search to their application.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vojto</dc:creator><pubDate>Sun, 11 Jul 2010 14:19:26 -0000</pubDate></item><item><title>Re: dnif &amp;#8211; The new search gem for sphinx</title><link>http://definitivecode.com/2010/07/05/dnif-the-new-search-gem-for-sphinx/#comment-62286431</link><description>One could move it to a YAML configuration file, but it's a very model specific config. Doing it this way keeps the model specific stuff in the model, which I believe is better in this case for clarity.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Robert Rouse</dc:creator><pubDate>Sun, 11 Jul 2010 13:43:08 -0000</pubDate></item><item><title>Re: dnif &amp;#8211; The new search gem for sphinx</title><link>http://definitivecode.com/2010/07/05/dnif-the-new-search-gem-for-sphinx/#comment-62286429</link><description>It looks very cool!
&lt;br&gt;
&lt;br&gt;But what's up with this whole "using class methods to define stuff" thing.
&lt;br&gt;
&lt;br&gt;I mean this:
&lt;br&gt;
&lt;br&gt;define_index do
&lt;br&gt;    field :title
&lt;br&gt;    field :body
&lt;br&gt; 
&lt;br&gt;    where ["draft = ?", false]
&lt;br&gt;  end
&lt;br&gt;
&lt;br&gt;It does not belong there, this code. Rails does it this way and everything, but this is configuration. A YAML file or something would make sense. 
&lt;br&gt;
&lt;br&gt;Yes we are so used to this. But that's not OOP this.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vojto</dc:creator><pubDate>Sun, 11 Jul 2010 05:58:27 -0000</pubDate></item></channel></rss>
