On Jan 6, 4:00 pm, Alpha Blue <[email protected]> wrote:
> pharrington wrote:
> > On Jan 6, 3:35 pm, Alpha Blue <[email protected]> wrote:
> >> data from that file.  How can I create a named route in routes.rb to
> >> Thanks.
> >> --
> >> Posted viahttp://www.ruby-forum.com/.
>
> > This isn't what rails routing does (half of routing is pointless here,
> > as with a sane setup the request never even hits the rails app).
>
> > 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.
-- 
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