Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8941199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:14:46+00:00 2026-06-15T11:14:46+00:00

anyone seen this array error before? I have a helper method that returns an

  • 0

anyone seen this array error before?
I have a helper method that returns an array. In development mode on my laptop it returns the array in an expected format:

var fire = 
[[1349083353000, 8.860000000000582], [1349085153000, 19.779999999999745],
[1349086953000, 20.289999999999964], [1349088753000, 29.850000000000364], 
[1349090553000, 3.7999999999992724]];

BUT same code in production returns a strange array format:

var fire = 135175422800015.5135175602800020.0135175782800018.99135175962800012.33135176142800019.13135176322800029.55135176502800020.13135176682800077.34

I have tried checking the output in rails console on either machine and the production output the same weird array format. I have created a new array from within rails console on production and it works as expected to output the correct format of array.

Anyone seen this bit of weirdness?

Rails version:3.2.8
Ruby Version:1.9.3p-125
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T11:14:47+00:00Added an answer on June 15, 2026 at 11:14 am

    You’re probably developing on Ruby 1.9 and deploying on Ruby 1.8. The default behaviors for treating arrays are different.

    In Ruby 1.8 array.to_s is equivalent to array.join('').

    In Ruby 1.9 array.to_s is equivalent to array.inspect.

    If you want the proper behavior on both, and you’re using JavaScript, you might want to render it as JSON using array.to_json instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting this error in IE8. Has anyone seen this before? Webpage error details:
Anyone seen this before? 2011-04-20T18:45:07+00:00 app[web.1]: Jammit::OutputNotWritable (Jammit doesn't have permission to write to
Has anyone seen this error when working with a PHP application out of dynamic
For anyone familiar with lambdaj (not I) you will have seen this stacktrace, or
I'm sure you've all seen this error before in your Titanium mobile projects. I've
This is the most strange error I have seen in my life, because yesterday
Has anyone seen this: ?? No jgem command works at all?? Though jruby -S
Has anyone ever seen this? I don't how to expand on this. It's the
If anyone's seen me posting lots of questions about this project in the past
Anyone seen any tangible metrics or sites that talk about the percentages of Rails

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.