Hello,
I'm working on a website that is being moved from an old server to a
new one. The website itself is written in PHP with some Perl thrown
in. However, there is one tool available on the website that is driven
by a Rails app. This is code that my company inherited...not something
we chose to do :)
So, what I'm trying to do is update the app to work in a Rails 3
environment since that is what will be installed on the new server.
I've got everything else working fine, but I'm struggling with the
ZiYa part. The original app was created close to 5 years ago and used
a plugin. The old server setup is Ruby 1.8.7 (2009-12-24 patchlevel
248) [i386-freebsd6] and Rails 2.0.2.
I followed the setup instructions from the ZiYa Github page and tried
to adapt the old controller and view code. However, the chart isn't
rendering correctly. I see the correct axis labels on the x-axis and y-
axis, but the chart itself doesn't have the right values and no line
is showing at all. The only other thing I see is a bunch of what
looks like garbles text at the top of the chart box.
Here's a link to the old and new controller code, but let me know if
there's any other code that would be helpful.
http://www.pastie.org/1617645
Thanks!
Spencer