# Flash variables and ruby

**URL:** <https://www.ruby-forum.com/t/flash-variables-and-ruby/110151>\
**Category:** Rails\
**Created:** [July 23, 2007, 8:36pm UTC](https://www.ruby-forum.com/t/flash-variables-and-ruby/110151 "2007-07-23T20:36:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![austen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b2d939/32.png) [@austen](https://www.ruby-forum.com/u/austen)\
**Post date:** [July 23, 2007, 8:36pm UTC](https://www.ruby-forum.com/t/flash-variables-and-ruby/110151/1 "2007-07-23T20:36:29Z")

</div>

hey fellas,

I recently wrote a flash uploader that is integrated into my rails  
app. What I want to do is feed the flash a var, have it do its thing,  
then feed a var back to the ruby.

My only issue is passing back the variable to rails. Does a post  
function like in PHP work? or does anyone have a simple solution for  
me?

Thanks, any advice you can throw my way i would greatly appreciate it.

Austen

---

<div class="post-metadata">

**Author:** ![austen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b2d939/32.png) [@austen](https://www.ruby-forum.com/u/austen)\
**Post date:** [July 26, 2007, 3:21am UTC](https://www.ruby-forum.com/t/flash-variables-and-ruby/110151/2 "2007-07-26T03:21:39Z")

</div>

austen wrote:

> I recently wrote a flash uploader that is integrated into my rails  
> app. What I want to do is feed the flash a var, have it do its thing,  
> then feed a var back to the ruby.
> 
> My only issue is passing back the variable to rails. Does a post  
> function like in PHP work? or does anyone have a simple solution for  
> me?

Ogle the source to Juggernaut. It uses the URL javascript:source trick  
to  
push JS out into a browser.

–  
Phlip  
[http://www.oreilly.com/catalog/9780596510657/](http://www.oreilly.com/catalog/9780596510657/)  
“Test Driven Ajax (on Rails)”  
assert\_xpath, assert\_javascript, & assert\_ajax
