Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the Rails equivalent to PHP's echo("ok")?

These special instructions for getting SWFupload to work on a mac in safari or firefox are only for PHP. Could some polyglot coders out there, translate this to Rails for me?

PHP Version this quote is from here

I added echo "OK"; to the end of upload.php and uploadphoto.php and my MAC user can use the uploader with Photopost.

I'm assuming their upload.php is the file that hosts the form.. maybe uploadphoto.php is an action in their controller?

like image 280
Trip Avatar asked Mar 03 '11 18:03

Trip


1 Answers

You don't need a template for this, the controller can render the text itself:

render :text => "OK"
like image 123
zetetic Avatar answered Oct 06 '22 08:10

zetetic