# Forgot attachment for SWF player tracks are 'undefined'

**URL:** <https://www.ruby-forum.com/t/forgot-attachment-for-swf-player-tracks-are-undefined/196946>\
**Category:** Rails\
**Created:** [April 22, 2009, 3:36am UTC](https://www.ruby-forum.com/t/forgot-attachment-for-swf-player-tracks-are-undefined/196946 "2009-04-22T03:36:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rubio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a88e4f/32.png) [@rubio](https://www.ruby-forum.com/u/rubio)\
**Post date:** [April 22, 2009, 3:36am UTC](https://www.ruby-forum.com/t/forgot-attachment-for-swf-player-tracks-are-undefined/196946/1 "2009-04-22T03:36:52Z")

</div>

The problem:

I finally got the playerMultipleList.swf to appear on the webpage, and I  
was really excited even tho the playlist didn’t show up. Loading  
playlist flashes by, then just says undefined (please see screen shot in  
attachment).

I noticed in my development.log the following, but am at a loss as to  
how to do the mapping if that’s the issue:  
ActionController::RoutingError (No route matches “/Home/playlist.xml”  
with {:method=\>:get}):

Details:  
The tracks don’t appear (get undefined where a track should be) even  
though I used the same pathing convention to point to public/Sounds  
(should evaluate to  
#{RAILS\_ROOT}/public/Sounds just as the swf path evaluated to  
#{RAILS\_ROOT}/public/swf and found the player.

At first I thought this problem would be a piece of cake, but now after  
trying the same convention I just mentioned, as well as the relative  
path, and absolute path to the myPlayList.xml still just “undefined” for  
the track … please see the attachment for a screen shot of this. and  
the current code as well.

If you have any ideas, it’s greatly appreciated.

Thanks for your time

---

<div class="post-metadata">

**Author:** ![rubio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a88e4f/32.png) [@rubio](https://www.ruby-forum.com/u/rubio)\
**Post date:** [April 22, 2009, 7:32am UTC](https://www.ruby-forum.com/t/forgot-attachment-for-swf-player-tracks-are-undefined/196946/2 "2009-04-22T07:32:34Z")

</div>

Rubio R. wrote:

> The problem:
> 
> I finally got the playerMultipleList.swf to appear on the webpage, and I  
> was really excited even tho the playlist didn’t show up. Loading  
> playlist flashes by, then just says undefined (please see screen shot in  
> attachment).
> 
> I noticed in my development.log the following, but am at a loss as to  
> how to do the mapping if that’s the issue:  
> ActionController::RoutingError (No route matches “/Home/playlist.xml”  
> with {:method=\>:get}):
> 
> Details:  
> The tracks don’t appear (get undefined where a track should be) even  
> though I used the same pathing convention to point to public/Sounds  
> (should evaluate to  
> #{RAILS\_ROOT}/public/Sounds just as the swf path evaluated to  
> #{RAILS\_ROOT}/public/swf and found the player.
> 
> At first I thought this problem would be a piece of cake, but now after  
> trying the same convention I just mentioned, as well as the relative  
> path, and absolute path to the myPlayList.xml still just “undefined” for  
> the track … please see the attachment for a screen shot of this. and  
> the current code as well.
> 
> If you have any ideas, it’s greatly appreciated.
> 
> Thanks for your time

I actually got all this to work finally, so thanks to all who took the  
time to take a look !!

Rubio
