<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Streamlined: Tag fixes</title>
    <link>http://streamlinedframework.org/articles/tag/fixes?tag=fixes</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Stop banging rocks together and build something</description>
    <item>
      <title>0.0.6 and Rails 1.1.6</title>
      <description>&lt;p&gt;One of our (very helpful) users asked the question on the mailing list: &amp;#8220;You say 0.0.6 is Rails 1.2 compliant, but is it backward compliant with Rails 1.1.6?&amp;#8221;&lt;/p&gt;


	&lt;p&gt;The simple answer is &amp;#8220;no&amp;#8221;.  But the just slightly less simple answer is: here&amp;#8217;s what to do about it.&lt;/p&gt;


	&lt;p&gt;Open /vendor/plugins/relevance_extensions/init.rb and comment out the line that reads:&lt;/p&gt;


&lt;code&gt;Dependencies.load_paths.unshift("#{RAILS_ROOT}/app/streamlined")&lt;/code&gt;

	&lt;p&gt;Then, open up /vendor/plugins/relevance_extensions/lib/streamlined_controller.rb, and uncomment the two lines:&lt;/p&gt;


&lt;code&gt;
  # require_dependencies :ui, Dir["#{RAILS_ROOT}/app/streamlined/*.rb"].collect {|f| f.gsub(".rb", "")}
  # depend_on :ui, Dir["#{RAILS_ROOT}/app/streamlined/*.rb"].collect {|f| f.gsub(".rb", "")}
&lt;/code&gt;

	&lt;p&gt;That&amp;#8217;s it!  The rest is all compliant in both releases.&lt;/p&gt;


	&lt;p&gt;Finally, if you are going to run it in Firefox 2.0, there is a bug in Prototype.  You can monkeypatch it Add the following at line 865:&lt;/p&gt;


&lt;code&gt;

    // patched as suggested in http://dev.rubyonrails.org/ticket/6579
    for (var name in headers) {
      if (typeof(headers[name]) != 'function') {
        this.transport.setRequestHeader(name, headers[name]);
      }
    }

&lt;/code&gt;

	&lt;p&gt;We&amp;#8217;ve submitted that patch back to Prototype, and are waiting to hear if it gets adopted.  Without this patch, everything still works fine in IE, Safari and Firefox 1.5 (and, yes, Opera).  Only Firefox 2.0 seems to be affected.&lt;/p&gt;</description>
      <pubDate>Tue, 30 Jan 2007 18:53:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:ed9bc2a0-63f4-4f8a-941f-0c3fa4458599</guid>
      <author></author>
      <link>http://streamlinedframework.org/articles/2007/01/30/0-0-6-and-rails-1-1-6</link>
      <category>Releases</category>
      <category>News</category>
      <category>Integration</category>
      <category>fixes</category>
      <category>prototype</category>
      <trackback:ping>http://streamlinedframework.org/articles/trackback/55</trackback:ping>
    </item>
  </channel>
</rss>
