Open Side Menu Go to the Top
Register
Rails / JS Question Rails / JS Question

08-26-2013 , 05:41 PM
Hey guys,

So, when I run my Rails app locally and click "Let's get started", the page loads with two drop downs, both populated (correctly) with 20 team names. Now, when I do the same thing on my Heroku version, there are no names appended in either of the drop downs. I have no idea what's causing this.

Here's a link to the JS:https://github.com/Mariogs37/SquashS...shsimulator.js

I'm pretty confused at this point...

Thanks in advance for any help,
Mariogs
Rails / JS Question Quote
08-26-2013 , 06:14 PM
The first thing I would look at is whether the ajax request to /team_lookup is actually returning data, and if not what the actual source of the data returned by that request is, and whether it's setup properly to work in heroku.

You can use fiddler or firebug to look at the actual data returned in the response, or whatever the built-in development tools are called in chrome or IE or whatever.
Rails / JS Question Quote

      
m