0.0.6 and Rails 1.1.6

Posted by jgehtland Tue, 30 Jan 2007 23:59:20 GMT

One of our (very helpful) users asked the question on the mailing list: “You say 0.0.6 is Rails 1.2 compliant, but is it backward compliant with Rails 1.1.6?”

The simple answer is “no”. But the just slightly less simple answer is: here’s what to do about it.

Open /vendor/plugins/relevance_extensions/init.rb and comment out the line that reads:

Dependencies.load_paths.unshift("#{RAILS_ROOT}/app/streamlined")

Then, open up /vendor/plugins/relevance_extensions/lib/streamlined_controller.rb, and uncomment the two lines:

# 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", "")}

That’s it! The rest is all compliant in both releases.

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:

// 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]); } }

We’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.

Posted in , ,  | Tags ,  | 1 comment | no trackbacks

Trackbacks: 0

Use the following link to trackback from your own site: http://streamlinedframework.org/articles/trackback/55

Comments: 1

Leave a response | RSS feed for this post

  1. # Mislav said about 6 hours later:

    Great news. BTW, I’ll make sure the Prototype issue gets fixed as soon as possible.

Leave a response

Toggle website and email fields