You are here: Forums Ask a Rails expert activesupport string first met...
Posted in Forums : Ask a Rails expert
Authority 12
Posting Rating 0
Sign in to rate this post
|
Hi, i’ve come across this weird error calling value.first value = “2008/05/31 00:00:00” value.class value.first(10) 41 def first(limit = 1) value[0..9] = “2008/05/31” I am at a loss (any help appreciated) |
Authority 12
Posting Rating 0
Sign in to rate this post
|
OK, This occurs because i’ve upgraded to ruby 1.8.7 (had to do this to get mislavs will_paginate to install on windows) from a mailing list Ruby 1.8.7 has String#chars. You can avoid this conflict by putting
Note: activesupport/lib/active_support/core_ext/string/unicode.rb |
Authority 75
Posting Rating 95
Sign in to rate this post
|
Make a test to prove this, and then submit a patch to the core! |
Ask a Rails expert : Ruby Builder
Ask a Rails expert : Better programming skills
Ask a Rails expert : Select Option
Ask a Rails expert : Updating ruby version on windows
Ask a Rails expert : Periodicall Ajax Calls and Session Expiry
Ask a Rails expert : Sub queries in RoR
Ask a Rails expert : Remembering associations
Ask a Rails expert : Keeping the databse clean
Ask a Rails expert : How to redirect single app to 2 different URLs
Ask a Rails expert : Dealing with nested models