On Wed, Jan 6, 2010 at 12:35 PM, Alpha Blue <[email protected]> wrote:
> I created a special flash file that will read tag cloud variables from > an external text file which will be located in the same directory as the > swf. The tags are kept in the database and once per day a > definitions.txt file is created with the population of the tags, the > ref, and the weight. > > My swf file and the external file called definitions.txt are located in > public\swf\. > > The swf will call a method of get and need to be able to retrieve the > data from that file. How can I create a named route in routes.rb to > accomplish this without a controller present for this action? > > This really has nothing to do with the Rails or Rails routing system. If you're wanting to simply do the following: a) pull data from the db b) store this date into a file c) read this data via ActionScript If my understanding is correct, you can write a simply Ruby script to pull the information from the db and write it out to a file. Next, is this file being created at a particular interval? If so, you can use cron to call this script. It's not clear from your initial e-mail as to when you'll be creating this new file. -Conrad > public\swf\example.swf > public\swf\definitions.txt > > example.swf will attempt to load definitions.txt from the same directory > > Any help would be appreciated. I thought I was pretty savvy with routes > but I've hit a brick wall. > > Thanks. > -- > 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]<rubyonrails-talk%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > > >--
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.

