Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

gem facets > 2.4.0 issue with Rails 2.1

#928

I have a working Rails app and if I require 'facets' all my url/apth (routes) will break with this error message:

key not found

/Library/Ruby/Gems/1.8/gems/facets-2.4.3/lib/core/facets/hash/slice.rb:10:in fetch' /Library/Ruby/Gems/1.8/gems/facets-2.4.3/lib/core/facets/hash/slice.rb:10:inslice' /Library/Ruby/Gems/1.8/gems/facets-2.4.3/lib/core/facets/hash/slice.rb:9:in each' /Library/Ruby/Gems/1.8/gems/facets-2.4.3/lib/core/facets/hash/slice.rb:9:inslice'

View: <% form_for(@post, :html => { :multipart => true }) do |f| %>

Line 10 of hash/slice.rb h[key] = fetch(key)

Thanks,

Peter.

Reported by Peter · August 28th, 2008 @ 11:36 PM

State: invalid
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Michael Koziarski
    Michael Koziarski
    • State changed from new to invalid

    The facets gem is overriding Hash#slice in a way which is incompatible with ours.

    You'll have to require a subset of facets

    August 29th, 2008 @ 08:42 AM