pharrington wrote:
> On Jan 6, 4:00 pm, Alpha Blue <[email protected]> wrote:
>> > If you only want a handy method of linking to the text file from your
>> > app, just create a helper method or a constant.
>>
>> I don't need a link.  I need a route.  There is no link.  No one is
>> clicking any link on any page.  The SWF is embedded on the page.  The
>> SWF is attempting to pull data from a text file in its root directory.
>> If it can be done with a helper method - great, how?
>>
>> If not, I'm back to square one and need someone to answer my question.
>> --
>> Posted viahttp://www.ruby-forum.com/.
> 
> Ok. The text file's in the app's /public directory... you don't need a
> route. That is what /public is for; a directory to serve static files
> directly via the web server, *bypassing* your app. Just access it from
> your swf like you would any other resource thats in /public.

Thanks mate.  This is what I didn't realize.

I moved the file definitions.txt to public\ and everything is working 
fine now.

I appreciate the clarification.

-- 
Posted via http://www.ruby-forum.com/.
-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.


Reply via email to