Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
1.8.7 compatability issues?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jon  
View profile  
 More options Jul 23 2008, 10:14 pm
From: Jon <telim...@gmail.com>
Date: Wed, 23 Jul 2008 19:14:30 -0700 (PDT)
Local: Wed, Jul 23 2008 10:14 pm
Subject: 1.8.7 compatability issues?
I got this error in my Rails app after updating to Ruby 1.8.7
patchlevel 63. After reverting to 1.8.6 patchlevel 279, all is well
again.

NoMethodError in PhotosController#random

undefined method `[]' for #<Enumerable::Enumerator:0x24abaa8>

/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/core_ext/string/access.rb:43:in `first'
vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:70:in
`has_attachment'
app/models/thumbnail.rb:5
app/models/photo.rb:15
app/controllers/photos_controller.rb:23:in `random'


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
st.hennig@googlemail.com  
View profile  
 More options Aug 9 2008, 4:18 pm
From: "st.hen...@googlemail.com" <st.hen...@googlemail.com>
Date: Sat, 9 Aug 2008 13:18:04 -0700 (PDT)
Local: Sat, Aug 9 2008 4:18 pm
Subject: Re: 1.8.7 compatability issues?
Hello, I had the same problem after upgrading ruby. In ruby 1.8.7 some
methods of the String class were removed, so you have to modify the
attachment_fu.rb file. Navigate to line 70 of the file vendor/plugins/
attachment_fu/lib/technoweenie/attachment_fu.rb and change the the
line

attachment_options[:path_prefix]   = attachment_options[:path_prefix]
[1..-1] if options[:path_prefix].first == '/'

to

attachment_options[:path_prefix]   = attachment_options[:path_prefix]
[1..-1] if options[:path_prefix].starts_with('/')

Now, my application works after this simple modification. Hope this
helps you too.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »