This project is archived and is in readonly mode.
gem facets > 2.4.0 issue with Rails 2.1
Reported by Peter | August 28th, 2008 @ 11:36 PM | in 2.x
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:in
slice'
/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:in
slice'
View: <% form_for(@post, :html => { :multipart => true }) do |f| %>
Line 10 of hash/slice.rb h[key] = fetch(key)
Thanks,
Peter.
Comments and changes to this ticket
-
Michael Koziarski August 29th, 2008 @ 08:42 AM
- 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
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>